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!

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...