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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...