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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...