I've just installed filebeats and I am trying to configure it to include_lines that contain square brackets. For example, the log file entry would be something like "Storage swapped on [DBName].[TableName1]".
I tried configuring the yml as follows, but this isn't working: #include_lines: ["^ERR", "^WARN"]
include_lines: ["Storage swapped on [DBName].[TableName1]", "Error", "ERROR"]
If I remove the square brackets from the string it works, but this gives me messages for all tables:
include_lines: ["Storage swapped"]
So I am assuming it's the square brackets it doesn't like? Do I need to escape these characters, and if so how?!
Thanks for the prompt response Carlos, but I'm still doing something wrong!
If I put the escape char inside the double quotes like this, the service won't start.
The filebeat_Responses service failed to start due to the following error:
The service did not respond to the start or control request in a timely fashion.
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.