Getting Data In

What is the best way to send data to Splunk HTTP Event collector? UDP vs forwarder?

pimco_rgoyal
Observer

Hi,
Can someone please help guide me based on experience? What is the best mechanism to stream data to Splunk? As part of our organization we have built a custom logger service that can make a REST call (internally this service would then use HTTP event collector) and send data to Splunk. Some of these apps had issues in Splunk HTTP collector with JavaScript/typescript. The constraint with forwarder is that many of these apps have multiple clients wherein it might be difficult to achieve a Forwarder setup. Lastly, with UDP we have seen few reviews that show event loss issues.

Thanks

0 Karma

koshyk
Super Champion

The best possible option in large enterprises is to use a log aggregration layer and Splunk to read it from it.
eg.

  • use syslog (rsyslog/syslog-ng) to collect the data which comes as stream and log into a good directory structure
  • A good pattern to use is /myfilesystem/data/%port%/%fromhost-ip%/%priority%.log
  • And based on type of data and the requirements, you configure your splunk inputs.conf with relevant sourcetype and index
  • Ensure all data in Splunk have index-time settings configured correctly
0 Karma

HiroshiSatoh
Champion
0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...