when there is a pipe in my thread, pattern is broken and log level is become "|" rest of my pattern is miss printed so I want to escape |(pipe) in thread if there is one.
Also if there is a empty character in thread part also same thing happens, so how can I say that thread starts with [ and ends with ] characters
I tried exact same and it was giving errors now it is working :).
that solves my problem thanks.
In any case how can I escape pipe character in this %{DATA:thread}
assume pipe is in the middle of text and I want to escape it.
What do you mean by escape it? Using a \ before a special character will escape it but not sure we are talking about the same thing because that character is in a field.
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.