Splunk Dev

Java Sending JSOn object to HEC

spammenot66
Contributor

Sending json events and log events to HEC in using Java Logback, and Log4j matches the format found in application log files.

How do I send JSON data to Splunk hec and not see the fields logger, message, severity, thread, time in there?

For example, if my json object is {id:1234, type:issue, {field1:Val1, field2:Val2}},

how do i get it into Splunk HEC without seeing it in my index as

 

 

{
  logger:SPLUNK,
  severity:INFO,
  thread:main,
  time:160486996.996,
  message:{id:1234, type:issue, {field1:Val1, field2:Val2}}
}

 

 

 

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...