Splunk Search

Why is Splunk Search Not Working Properly?

omera
Explorer

When we are doing searches on Splunk we are encountering a strange issue. For example, when I add sc4s_fromhostip=... to the search I can't see all the events, sometimes I can't see any results. Normally there are events. When I check with stats (... | stats count by sc4s_fromhostip) I can see the number of events. When I put a wildcard * to the end (sc4s_fromhostip=...*) then the number of events increases but still it doesn't show all of them.

If I do an eval and make a copy of the sc4s_fromhostip field it works properly and I can see all the results. Like ... | eval a=sc4s_fromhostip | a=…

* This happens on all the search heads in the cluster and outside the cluster.
* If I change the user it still continues.

Did anyone encounter a similar issue before?

Labels (1)
0 Karma

somesoni2
Revered Legend

Try to run your base search (without sc4s_fromhostip filter), then click on sc4s_fromhostip value on field Sidebar on left. it'll add the search filter to your main search with proper format. If there are any special character, extra spaces, it should tell you that.

0 Karma

omera
Explorer

Hi somesoni2. I'm adding the field to the search by going over the field that Splunk has found and pressing add to search. So Splunk adds it from the results it has generated. But after it adds it to the search it doesn't show the events.

0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...