Hi,
I have couple of applications sending logs on to logstash on same port using rsyslog.
Is it possible to identify them on logstash syslog input using $InputFileTag or any other tags that I can configure on rsyslog configs ?
example
ceph-rsyslog.conf
$InputFileName /var/log/ceph/ceph-osd.log
$InputFileTag cephlog
$InputRunFileMonitor
$InputFileFacility local0
ceph-logstash.conf
input {
syslog {
host => "10.1.1.2"
port => 1544
if [InputFileTag] =~ "cephlog"{
type => "ceph"
}
}
}
filter {
if [type] =~ "ceph" {
mutate {
add_field => { "environment" => "lab" }
}
}
}
any other way of doing it ?