You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
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:
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 }
}
Sample Data:
{
"http_request_failure" => {
"request" => {
"method" => "get",
"url" => "http://10.213.129.59:8080/apiserver/monitor/healthCheck1"
},
"backtrace" => nil,
"runtime_seconds" => 0.002,
"name" => "url",
"error" => "Connection refused (Connection refused)"
},
"@timestamp" => 2017-08-07T10:00:04.876Z,
"@Version" => "1",
"tags" => [
[0] "_http_request_failure"
]
}
{
"http_request_failure" => {
"request" => {
"method" => "get",
"url" => "http://10.199.212.83:8080/ignite?cmd=node&ip=10.199.212.83"
},
"backtrace" => nil,
"runtime_seconds" => 5.007,
"name" => "url",
"error" => "connect timed out"
},
"@timestamp" => 2017-08-07T10:00:06.136Z,
"@Version" => "1",
"tags" => [
[0] "_http_request_failure"
]
}
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: