Hi,
Here is how my massage column (under available fields) looks like:
[2018-07-12 19:02:09.050][][][] TRANS | app | TRANS | [ud.queue.name=UDReplyQueue_][req=HDRA2||MSN| NP**||][exec.time=435][usw.time=435][resp=HDRA2|GDS**|SGA**| UMN*****||]
so I am using following script to get SGA from all records:
def m = \|SGA([^\|]+).matcher(doc["_source"].value);
if ( m.matches() ) {
return m.group(1)
} else {
return "no match"
}
But this is giving me a compile error. Maybe there is something with its syntax. I would appreciate any help. Thanks!
but even following query is not returning anything:
doc['message.keyword'].value
I do see some content under message field on discover tab but I don't see any thing under this new field. When I try to use regex, it gives me a compile error. Maybe there is something different in that message 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.