Getting Data In

How to get JSON objects from java inputstream into splunk?

lyndac
Contributor

I have a java program that creates JSON objects from a java input stream. I would like to have these JSON objects indexed in splunk, but don't want to have to write a bunch of files. What is the best way to do this? I know how to write the props.conf to parse the JSON object, but I'm not sure which input to use to get the data into splunk.

I am currently using splunk Enterprise 6.6, with plans to upgrade to 7.0

0 Karma

Sukisen1981
Champion

Hi - Have you tried using this app - https://splunkbase.splunk.com/app/456/#/details ?

0 Karma

lyndac
Contributor

That seems to do the parsing. I can just use props.conf to extract the fields. I'm more looking at the mechanism to get the data into splunk so it can be parsed/indexed. So like should i use a Kafka input or HTTP Collector maybe or is there some other easy way to have splunk read from a stream?

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...