I am trying to send xtreemfs log files to logstash and parse them into elastic search
A problem with xtreemfs log files is that they begin with some thing like
########### Configuration ###########
# Stuff
# More Stuff
# More stuff
# Even more stuff
### End of configuration stuff
[ I | Data | Data | data | Data ] Message
[ I | Data | Data | data | Data ] Message
[ I | Data | Data | data | Data ] Message
[ I | Data | Data | data | Data ] Message
[ I | Data | Data | data | Data ] Message
As you can see, two different patterns exist in one log file.
Is there a way for me to group the line beginning with # together in one single event? And then parse the rest of logs beginning with [ using another grok?
What is the proper way to handle this? I am using logstash 1.4.2.
Is parsing some thing like this well supported in logstash?