Getting Data In

Where to find an example to log directly into Splunk via log4j?

attu013
Engager

Could anybody please point me to an example of how to log directly into Splunk via log4j.
I did search extensively on Google, but was unable to find an example..

Tags (2)
0 Karma

gblock_splunk
Splunk Employee
Splunk Employee

Hi @attu013

You can send data directly to Splunk with log4j using our HTTP Event Collector, or with a TCP Input. You can find out more here.

Get Updates on the Splunk Community!

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...