Splunk Search

Is there any configuration/way to merge two or more events into one ?

neelpatel02
New Member

I was trying to send data through Splunk HEC (Http event Collector).

curl http://ip:8088/services/collector -H "Authorization: Splunk <HEC_TOKEN>" -d '{"event": "Test1"}{"event": "Test2"}{"event": "Test3"}'

 

So,  in splunk it will goes like

Test1 (-> Event 1)

Test2 (-> Event 2)

Test3 (-> Event 3)

Result I want:

Test1Test2Test3  (as 1 event in splunk.)

 

Labels (1)
Tags (2)
0 Karma

yuanliu
SplunkTrust
SplunkTrust

What you wanted is expressed as an array in JSON.

curl http://ip:8088/services/collector -H "Authorization: Splunk <HEC_TOKEN>" -d '[{"event": "Test1"},{"event": "Test2"}m{"event": "Test3"}]'
0 Karma
Get Updates on the Splunk Community!

Build Scalable Security While Moving to Cloud - Guide From Clayton Homes

 Clayton Homes faced the increased challenge of strengthening their security posture as they went through ...

Mission Control | Explore the latest release of Splunk Mission Control (2.3)

We’re happy to announce the release of Mission Control 2.3 which includes several new and exciting features ...

Cloud Platform | Migrating your Splunk Cloud deployment to Python 3.7

Python 2.7, the last release of Python 2, reached End of Life back on January 1, 2020. As part of our larger ...