Getting Data In

Confusion with sedcmd on an overided sourcetype

Tasos
Engager

Hello Team . I need an advice regarding an issue I experience.

I have a Heavy Forwarder witch collects data from eventhub with sourcetype mscs:azure:eventhub.

On HF level I transform the data from a specific provider to override the sourcetype from mscs:azure:eventhub to mscs:azure:eventhub:databricks. 
The format of the logs is json .
There is one filed in the logs  properties.requestParams which has the nested key values (depending the log everytime the key is different and not the  same keys for all logs ).

The field properties.requestParams  raw format is like "properties.requestParams" : "{\"KeyA\": \"valueA\" , \"keyB\":\"valueB\"}"

I want to remove the  double quotes before and after curly braces and the escape character .

My challenges are that the sedcmd  works only if I apply it on the HF in props for mscs:azure:eventhub  

and not in my new sourcetype  mscs:azure:eventhub:databricks and for some reason it brakes the format from the events with sourcetype mscs:azure:eventhub as well  which I don't want.

 

Any idea how to approach this issue ? 

Labels (2)
0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Splunk Community Badges!

  Hey everyone! Ready to earn some serious bragging rights in the community? Along with our existing badges ...

[Puzzles] Solve, Learn, Repeat: Matching cron expressions

This puzzle (first published here) is based on matching timestamps to cron expressions.All the timestamps ...