Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[add_field,tags,type=>"" ] doesn't work when connection is time out or Connection refused. #78

Open
kingmorning opened this issue Aug 7, 2017 · 1 comment

Comments

@kingmorning
Copy link

Please post all product and debugging questions on our forum. Your questions will reach our wider community members there, and if we confirm that there is a bug, then we can open a new issue here.

For all general issues, please provide the following details for fast resolution:

  • Version: 5.5.1
  • Operating System: centos 7
  • Config File :
    input {
    http_poller {
    urls => {
    url => "http://10.213.129.59:8080/apiserver/monitor/healthCheck1"
    }
    request_timeout => 5
    connect_timeout=>5
    socket_timeout => 5
    interval => 5
    codec => "json"
    type => "apiserver"
    add_field => {"projectName" => "szqy-apiserver"}
    add_tag => ["apiserver"]
    }
    http_poller {
    urls => {
    url => "http://10.199.212.83:8080/ignite?cmd=node&ip=10.199.212.83"
    }
    request_timeout => 5
    interval => 5
    codec => "json"
    connect_timeout=>5
    socket_timeout => 5
    type=>"ignite"
    add_field => {"projectName" => "ignite"}
    add_tag => ["ignite"]
    }
    }

output {
if [ projectName ] == "szqy-apiserver"{
kafka {
bootstrap_servers => "10.214.160.222:9092"
topic_id => "szqy"
codec => json
}
}
else if [ projectName ] == "ignite" {
kafka {
bootstrap_servers => "10.214.160.222:9092"
topic_id => "ignite"
codec => json
}
}
stdout { codec => rubydebug }
}

@mjpowersjr
Copy link

I believe this issue and #77 are likely describing the same issue. I've noticed this problem in Logstash 7.5.x as well. I have a 'type' field configured for the http_poller plugin, which added to events properly upon successful HTTP request, but is not being set upon timeout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants