Hi,
I would like to be able to create different sincedb for each logstash conf file as below by inserting %{mytype} in the sincedb_path string.
input {
file {
type => "appname"
path => "/path/to/catalina.out"
sincedb_path => "/usr/share/logstash/sincedb/input.sincedb.%{type}"
codec =>
multiline {
pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY}\s*%{HOUR}:?%{MINUTE}(?::?%{SECOND})"
negate => true
what => "previous"
charset => "ASCII"
}
}
}
But the filename isn't created as I want expected
-rw-r--r-- 1 logstash logstash 24 mars 12 10:53 input.sincedb.%{type}
I would like the filename look like
-rw-r--r-- 1 logstash logstash 24 mars 12 10:53 input.sincedb.appname
Any help would be appreciated.
Thanks