Splunk Search

How to find common errors in different log files?

Path Finder

In my environment I got one scenario like have to find common errors in iis log, applog,apache log and db log. How to find it

Please help me on the same

Thanks in Advance

0 Karma

Ultra Champion

Hi @Reddi694325
Many log types have a 'level' which is normally one of INFO/WARN/ERROR etc.
Some logs report a status code which indicates the outcome.

If you have installed the appropriate TA for your log type this should be extracted for you You need to identify those fields/tags/values and write a search to identify them.

(sourcetype=iis AND sc_status>=400) OR (sourcetype=myApp AND log_level=error)
If my comment helps, please give it a thumbs up!
0 Karma


What qualifies as a "common error" in three very different logs?

If this reply helps you, Karma would be appreciated.
0 Karma

Path Finder

Actually I am thinking is there any way to find by using codes like 404,500.............

three are different logs I know But code doesn't change I think.

0 Karma
Get Updates on the Splunk Community!

What's New in Splunk Cloud Platform 9.2.2403?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.2.2403! Analysts can ...

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...

Edge Processor Scaling, Energy & Manufacturing Use Cases, and More New Articles on ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...