Hello,
I am new in using logstash.
I would just like to change the sender.
My conf file is very basic :
input {
file {
path => "/srv/log//"
start_position => "beginning"
}
}
output {
gelf {
host => ["localhost"]
port => "5514"
}
}
I would like to send either the name of the parent folder (the first star) that hosts the file or the hostname that is in the message sent (which are centos system logs).
I have try different filter but i dont find solution.
Thank you for your help.