I would like to load them both in the same ES Index, but it does not work with just the grok filter. I can't understand how to manage the various fields.
This is always a tough issue to deal with. Grok while incredibly powerful occasionally has limits. I have never found a good answer to deal with this. But there are options.
Here is an old article for one way to do it
another would be to do it in the ruby filter
A final option might be to use the KV filter as all your data is in "source=file"
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.