Update Data in Real Time

Hi my code works fine but i have small problem,i want show in kibana update number of connection in port 9080 put he don't let me to do that, cause of in visualize he want me to count or calculate average or sum when i really want message to be updated with real time connection on port 9080 in kibana, kindly advice me how to do that :slight_smile:

input {

exec {
command => "netstat -antulp | grep 9080 | wc -l"
interval => 10
}

}

filter {
mutate {
convert => {
"message" => "integer"
}
}
}

output {

elasticsearch {
hosts => "localhost:9200"
index => "helloapache"
}
}

Hey @caesarramy,

You can use the "Top Hit" aggregation to select the most relevant entry - sorting by time descending should get you the most recent value in your selected time range:

Dear Larry_Gregory Thank you for your help it works :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.