Splunk Enterprise

Splunk failing to show app-name sent via log4j

mwahaj
Explorer

Hi,

I am using Splunk Enterprise 8.0.3 and Log4j 2.13.0. My java application can push log messages to splunk but I am failing to see application name in splunk. I am using the following configuration. As multiple java applications will be sending log messages so I want admin to find easily which application has sent which message on splunk. Is there a workaround? I am using the following log4j setting.

As you can see I am setting appName here but don't see this in splunk.

Labels (1)
Tags (1)
0 Karma
1 Solution

mwahaj
Explorer

The issue was fixed.. In splunk app name is show but I was looking at the footer.. My bad.

View solution in original post

0 Karma

mwahaj
Explorer

The issue was fixed.. In splunk app name is show but I was looking at the footer.. My bad.

0 Karma

mwahaj
Explorer

Here is the log4j config.

   <Syslog name="syslog" format="RFC5424" host="localhost" port="1467"
            protocol="TCP" appName="MyApp" includeMDC="true"
            facility="LOCAL0" enterpriseNumber="18060" newLine="true"
            messageId="Audit" id="App"/>
0 Karma
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 ...