Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Json message logging using flow variable

Hi,

I have a flow variable which has value in json format, example contrivedMessage= {"test":"blah", .....}, now i want to use this variable to log in sumo logic

In the message logging policy,

If i use

<Message>{contrivedMessage.content} </Message>

message is coming without starting {. If i use

<Message>\{contrivedMessage.content} </Message>

message is coming \{ "test":"value"}.

As it is coming with \ sumologic could not parse it as json.

Before when i used to formed the json log in the message logging policy as below, message used to come to sumo as json message.

<Message> \{"test":"{system.time.year}"...}</Message>

I have a reason why i am not doing it anymore...

1 5 982
5 REPLIES 5