I have a patterns like :
- 2021-10-15 20:00:13 2396 tstur1 /ftp/workspace/ this is message
- 2020-10-15 18:00:13 - - this is the second message
The fields are Date, Time, SessionId, path and message.
The grok pattern used is :
%{DATE:date} %{TIME:time} %{DATA:sessionid} %{DATA:username} %{DATA:path} %{GREEDYDATA:message}
is it possible to do a dynamic filter in logstash that will remove any fields with - value?