Getting Data In

Sample log formats for standard log4j sourcetype?

splunkreal
Motivator

Hello,

could you provide sample log formats for log4j sourcetype?

Is it covered by Splunk addon for Tomcat?

Thanks.

* If this helps, please upvote or accept solution if it solved *
0 Karma

isoutamo
SplunkTrust
SplunkTrust

Hi

base log4j format is defined on ..../splunk/etc/system/default/props.conf

splunk btool props list log4j [--debug]

with --debug you could check if it's defined/modified some other app too.

You could found instructions how to configure it on java side and some examples e..g https://mkyong.com/logging/log4j-hello-world-example/

r. Ismo 

Get Updates on the Splunk Community!

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...

Splunk App Dev Community Updates – What’s New and What’s Next

Welcome to your go-to roundup of everything happening in the Splunk App Dev Community! Whether you're building ...

The Latest Cisco Integrations With Splunk Platform!

Join us for an exciting tech talk where we’ll explore the latest integrations in Cisco + Splunk! We’ve ...