I'm working with microsoft-logstash-output-azure-loganalytics plugin and have to receive different inputs and send to different output based on tags or port. Is is possible? Let's my config file:
input {
tcp {
port => "5014"
type => syslog #optional, will effect log type in table
tags => ["legacy1"]
}
tcp {
port => "5015"
type => syslog #optional, will effect log type in table
tags => ["legacy2"]
}
}
filter {
}
output {
if "legacy1" in [tags] {
microsoft-logstash-output-azure-loganalytics {
workspace_id => "" # <your workspace id>
workspace_key => "" # <your workspace key>
custom_log_table_name => "tablelegacy1"
}
}
if "legacy2" in [tags] {
microsoft-logstash-output-azure-loganalytics {
workspace_id => "" # <your workspace id>
workspace_key => "" # <your workspace key>
custom_log_table_name => "tablelegacy2"
}
}
}