Hi All
I am trying to ingest syslog from two separate sources (one firewall and one Linux based appliance) and forward to log analytics workspace in Azure. I was able to achieve this using two separate conf files each with unique ports (one running on port 514 and other on 515). The problem is when I run two conf together it doesn't work. I am new to logstash and any help with be greatly appreciated.
My conf files look like this
Conf file 1
input {
syslog {
port => 514
}
}
output {
microsoft-sentinel-logstash-output {
managed_identity => true
tenant_id => "XXX"
data_collection_endpoint => "https://XXX1.uksouth-1.ingest.monitor.azure.com"
dcr_immutable_id => "dcr-XXX1"
dcr_stream_name => "Custom-XXX1"
}
}
Conf file 2
input {
syslog {
port => 515
}
}
output {
microsoft-sentinel-logstash-output {
managed_identity => true
tenant_id => "XXX"
data_collection_endpoint => "https://XXX2.uksouth-1.ingest.monitor.azure.com"
dcr_immutable_id => "dcr-XXX2"
dcr_stream_name => "Custom-XXX2"
}
}
Question 1: Do I need two separate conf files? can it be combined into 1 file considering the logs are destined to different tables in Log Analytics Workspace?
Question 2: What causes the issue?
Error Message
[FATAL][org.logstash.Logstash ] Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit