Hi Jochen,
Thanks for the reply.
I am using gelf output plugin to output the log messages to elasticsearch,
as well as to Graylog. I created GELF UDP input in the Graylog for seeing
the messages. The output plugin works well with the elasticsearch and I can
see all the messages going into the ES. But can't see in the Graylog
through GELF.
Following is my logstash config file that I am using.
input {
file {
path => "/root/Desktop/Graylog/SB_log.txt"
start_position => "beginning"
type => "logs"
sincedb_path => "/dev/null"
ignore_older => "155520000"
}
}
filter {
if [type] == "logs" {
mutate {
add_field => {"message" => "%{Message}"}
}
}
}
output {
elasticsearch {
hosts => ["127.0.0.1"]
}
gelf {
host => ["127.0.0.1"]
}
--
You received this message because you are subscribed to the Google Groups
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/graylog2/1073042d-ac6f-4f23-8a06-794d263e2fa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.