Hello everyone,
I'm using Filebeat to send three different logs to Logstash, where I'm applying parsing through filters. In the parsing process, I've taken into consideration the logs that are visible in the observation section of Kibana. While the logs are successfully being transferred to Elasticsearch, I'm encountering an issue where no filtration seems to occur while everything is working fine. Indices and data sync.
To elaborate, the format of the logs remains the same both before and after applying the filter section. I've attached my Logstash and Filebeat configuration files for reference.
Any insights or suggestions on why the filtration might not work as expected would be greatly appreciated.
Logstash Conf
input {
beats {
port => 5045
}
}
filter {
if "jicofo" in [tags] {
grok {
match => { "event.original" => "Jicofo %{TIMESTAMP_ISO8601:timestamp} %{LOGLEVEL:log_level}: \[%{POSINT:process_id}\] \[room=%{DATA:meeting_name}@%{DATA}(?:\s*meeting_id=%{UUID:meeting_id})?\] %{GREEDYDATA:message}" }
}
}
}
output {
if [tags] and "jicofo" in [tags] {
elasticsearch {
hosts => ["http://elasticSearch_ip:9200"]
index => "jicofo-%{+YYYY}"
}
}
}
Thank you in advance for your help!