Splunk Search

Filtering logfiles showing one error log for every row

apmcharter
New Member

Hello,

I need help in creating a search query to filter info showing just our logfile with same error line for all rows.

This error code also appear in other days on the same logfile but I don't want that to show up.

If no other info except this error shows up in the logfile, our app is failing and I need to catch that.

c.q.s.c.StoreHourSyncRestController : *** Sync Busy ***

Please assist.

Thank you!

Andie Medalla

Labels (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

If I understand the requirements correctly, this query will only return events that do not match the sample text.

index=foo NOT "*c.q.s.c.StoreHourSyncRestController*"
| regex _raw!="c\.q\.s\.c\.StoreHourSyncRestController : \*\*\* Sync Busy \*\*\*"
| appendpipe [stats count | eval _raw="App is failing!" | where count=0]
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...