Splunk Search

How to find common errors in different log files?

Reddi694325
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

nickhills
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

richgalloway
SplunkTrust
SplunkTrust

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

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

Reddi694325
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!

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...