I'm just a beginner in ELK, so please forgive me in advance.
Here is the kind of input I have in logstash :
E...(.@.@..b......................=...B.{"rxpk":[{"tmst":297436019,"time":"2018-11-20T10:54:01.237397Z","chan":1,"rfch":1,"freq":868.300000,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","lsnr":6.0,"rssi":-103,"size":32,"data":"QAUbASaAYAEBa0v5zRPad7A8WAjW8JnOLkg3ttCEoPU="}]}
And I would like to remove the first part before the Json, i.e "E...(.@.@..b......................=...B."
I specify that this part is kind of random, more or less characters etc.
The only pattern is that it begins with E and ends with B.
Thank you for your reply.
Thanks to your answer, I managed to separate the two parts instead of removing one
Here is my code if it can help some people in the same case
Actually, the grok filter uses the braces as a separator and with mutate we're adding new ones at each side of the json
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.