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!

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...