Splunk Search

parse json events properly and new line

ashoksamal63
New Member

I have json data coming in. Some times few jsons are coming together.

ex:

json \x00\x00\x00\x00\x00\x00\xA2\x00\x00է\xF9n[\x00\x00\xFF\xFF\xFF\xFF\x00\x00\xC7 json\x00\x00\x00\x00\x00\x00\xA2\x00\x00է\xF9n[\x00\x00\xFF\xFF\xFF\xFF\x00\x00\xC7json.

\x00\x00\x00\x00\x00\x00\xA2\x00\x00է\xF9n[\x00\x00\xFF\xFF\xFF\xFF\x00\x00\xC7 - is not constant always . it has few special char like 'n[', 'է' which keep on changing.

And every json has this kind of string (\x00\x00\x00\x00\x00\x00\xA2\x00\x00է\xF9n[\x00\x00\xFF\xFF\xFF\xFF\x00\x00\xC7) at the beginning or end of it. All i want is.

  1. one json per event
  2. no junk values like (\x00\x00\x00\x00\x00\x00\xA2\x00\x00է\xF9n[\x00\x00\xFF\xFF\xFF\xFF\x00\x00\xC7) in the event

Can some one help here please quickly??? Please

Tags (1)
0 Karma

alemarzu
Motivator

Hi ashoksamal,

Do you mind sharing an entire event sample so I can help you ?

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...