I tried to create dynamic the path from one filter but i get the error, when i try to start logstash. The field service is send from logstash and i can see it on kibana.
Is not environment variable that i want. I want a field from logstash, when beat send to logstash.
Example:
Beat send data with: field: service , data: apache
logstash:
filter {
data_dictionary_path => '/var/log/apache/data.log'
}
Any ideas ? :)
Config file:
filter {
data_dictionary_path => '/var/log/${service}/data.log'
}
Error msg:
:message=>"No such file or directory - /var/log/${service}/data.log", :backtrace=>["org/jruby/RubyFile.java:366:in `initialize'",