Splunk Search

Is this message format possible for sending to splunk?

metylkinandrey
Communicator

Tell me, is this message format possible for sending to splunk:

curl --location --request POST 'http://170.25.25.25:8088/services/collector/event' --header 'Authorization: Splunk ееееее-еееееееее-ееееее-e6fc' --header 'Content-Type: text/plain' --data-raw '{
"messageId": "<ED280816-E404-444A-A2D9-FFD2D171F928>",
"srcMsgId": "<rwfsdfsfqwe121432gsgsfgdg>",
"correlationMsgId": "<rwfsdfsfqwe135432gsgsfgdg>",
"baseSystemId": "<SDS-IN>",
"routeInstanceId": "<TPKSABS-SMEV>",
"routepointID": "<1.SABS-GIS.TO.KBR.SEND>",
"eventTime": "<1985-04-12T23:20:50>",
"messageType": "<ED123>",
"GISGMPResponseID": "<PS000BA780816-E404-444A-A2D9-FFD2D1712345>",
"GISGMPRequestID": "<PS000BA780816-E404-444A-A2D9-FFD2D1712344>",
"tid": "<ED280816-E404-444A-A2D9-FFD2D171F900>",
"PacketGISGMPId": "<7642341379_20220512_123456789>",
"result.code": "<400>",
"result.desc": "<Ошибка: абвгд>"
}'

Without fields:

"event" and "fields"
Using only custom fields?

 

 

Labels (1)
Tags (1)
0 Karma
1 Solution

schose
Builder

hi metylkinandrey,

you can send your custom message via without 'fields' and 'event'.

instead of sending it like in your example to:
/services/collector/event

just send it to:
/services/collector/raw

 see: https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector

best regards,

Andreas

View solution in original post

schose
Builder

hi metylkinandrey,

you can send your custom message via without 'fields' and 'event'.

instead of sending it like in your example to:
/services/collector/event

just send it to:
/services/collector/raw

 see: https://docs.splunk.com/Documentation/Splunk/latest/Data/FormateventsforHTTPEventCollector

best regards,

Andreas

metylkinandrey
Communicator

It seems to be what you need! Thank you!

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...