Security

Linkage to code?

nowakdaw
Path Finder

Hello All,

Thank you for your help!. I was wondering if anyone knew if splunk has the ability to parse through log4j files and then provide links to the line of code where that error/warning is fired. Provided we supply it a code base.

Thanks

Tags (1)
1 Solution

gkanapathy
Splunk Employee
Splunk Employee

Natively no. However, Splunk does have a feature called "Field Actions" that allows you to trigger a script that is passed values that are in the event you select in the UI. To make use of this, you would have to ingest the data into Splunk, extract the program/class name and line number from the message (pretty basic regex, if there isn't already something on SplunkBase where someone else has done it), and set up a URL to receive that and open the right file.

View solution in original post

gkanapathy
Splunk Employee
Splunk Employee

Natively no. However, Splunk does have a feature called "Field Actions" that allows you to trigger a script that is passed values that are in the event you select in the UI. To make use of this, you would have to ingest the data into Splunk, extract the program/class name and line number from the message (pretty basic regex, if there isn't already something on SplunkBase where someone else has done it), and set up a URL to receive that and open the right file.

nowakdaw
Path Finder

Thank you! Your time is appreciated!

0 Karma

nowakdaw
Path Finder

Thank you very much!, would you happen to know where I can find "Field Actions" I tried to look for it via my own splunk instance as well as through splunk.com and I could not find anything on it. Thanks again.

Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...