Hi Team,
We are facing issue while using http filter in logstash .
We are using file input plugin to read from a file and then use the message field in http filter
please see the code. Please help u actually its a urgent requirement
input {
file {
path => "/root/artist_0.csv"
start_position => "beginning"
sincedb_path => "/dev/null"
}
}
filter {
mutate {
gsub => [
"message", "artist-", ""
]
}
http {
url => "http://10.102.0.37:9200/hungamamusic/_count"
query => { "[details_track][singerf]" => "%{message}" }
verb => GET
target_body => api_response
}
#json {
# source => "api_response"
#}
}
output {
stdout {codec => rubydebug}
}