Splunk Search

How to search for errors that contain asterisks (*)?

cj039165
New Member

I have what I hope is a simple question. We have response logs from different payers. If they are having system issues, they will respond with a “AAA” code. In this case AAA*Y**42*. How can I filter for these? When I search for AAA*Y**42* I get responses with AAA or Y or 42.

Sorry for the newbie question

0 Karma

woodcock
Esteemed Legend

Try this:

index=YourIndexHere sourcetype=YourSourceTypeHere (AAA OR Y OR 42)
| regex "AAA\*Y\*\*42\*"
0 Karma

muebel
SplunkTrust
SplunkTrust

Hi cj039165, the regex command could be useful here, i.e.

sourcetype=your_system_issues_sourcetype | regex "AAA\*Y\*\*42\*"

This will filter all events that match that pattern.

Please let me know if this answers your question!

0 Karma

sundareshr
Legend

Try term(AAA*y**42*)

0 Karma
Get Updates on the Splunk Community!

Fall Into Learning with New Splunk Education Courses

Every month, Splunk Education releases new courses to help you branch out, strengthen your data science roots, ...

Super Optimize your Splunk Stats Searches: Unlocking the Power of tstats, TERM, and ...

By Martin Hettervik, Senior Consultant and Team Leader at Accelerate at Iver, Splunk MVPThe stats command is ...

How Splunk Observability Cloud Prevented a Major Payment Crisis in Minutes

Your bank's payment processing system is humming along during a busy afternoon, handling millions in hourly ...