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!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

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