Hello,
I have imported java logs into elasticsearch and some of the fields have ended up having huge multiline values. I am in need to search for a pattern in the value. Is there a way. Can I do that?
Regards,
Peter
Hello,
I have imported java logs into elasticsearch and some of the fields have ended up having huge multiline values. I am in need to search for a pattern in the value. Is there a way. Can I do that?
Regards,
Peter
Yep, there's a simple Wildcard Query, and a more advanced Regexp Query.
There's also a Grok Ingest Processor which can be configured with regexp patterns, and will extract the blobs of text into structured documents while ingesting. That's the preferred method (or using something like Logstash) because it makes search a lot simpler than trying to use regex queries.
I am using logstash to inject the log into elasticsearch. I have a very specific situation when I have to set an alert for some kind of pattern of the data of the logs. I have tried from kibana but I don't seam to be able to get the proper data out of it.
To be more exact here is a log example: https://paste.vpsie.com/paste.php?id=7388
and the pattern I want to search for is system.jetty.data: "java.lang.IllegalStateException, zip file closed"
Regards,
Peter
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.