Hi,
Can I have common config for all the file input plugins in logstash configuration file ?
Example:
input{
file {
type => "abc"
path => "C:/user/logs/*abc.log*"
sincedb_path => "C:/user/logs/abc.sincedb"
}
file {
type => "xyz"
path => "C:/user/logs/*xyz.log*"
sincedb_path => "C:/user/logs/xyz.sincedb"
}
codec => multiline {
pattern => "^%{TIMESTAMP_ISO8601}"
negate => true
what => previous
}
start_position => beginning
ignore_older => 0
Here, I want to have codec plugin and settings start-position , ignore-older common for all the file inputs.
If above mentioned config is wrong, then can there be any other way of doing so?