Getting Data In

Issue with Searching by Sourcetypes in Splunk

sigma
Path Finder

Hi all,
I'm collecting iLO logs in Splunk and have set up configurations on a Heavy Forwarder (HF). Logs are correctly indexed in the ilo index with sourcetypes ilo_log and ilo_error, but I'm facing an issue with search results.

When I run index=ilo | stats count by sourcetype, it correctly shows the count for ilo_log and ilo_error. Also, index=ilo | spath | table _raw sourcetype confirms logs are indexed with the correct sourcetype.

However, when I search directly with index=ilo sourcetype=ilo_log, index=ilo sourcetype=ilo_error, or even index=ilo ilo_log, I get zero results. Strangely, sourcetype!=ilo_error returns all ilo_log events and the same for ilo_error.

props.conf:

[source::udp:5000] 
TRANSFORMS-set_sourcetype = set_ilo_error
SHOULD_LINEMERGE = false
LINE_BREAKER = ([\r\n]+)

 transforms.conf:

[set_ilo_error] 
REGEX=(failure|failed)
DEST_KEY=MetaData:Sourcetype
FORMAT=sourcetype::ilo_error
WRITE_META = true
Labels (2)
0 Karma

bowesmana
SplunkTrust
SplunkTrust

Is sourcetype ending up a multivalue field or does it contain odd characters?

index=ilo
| head 1
| eval st_count=mvcount(sourcetype), st_len=len(sourcetype)
| eval tmp_sourcetype=":".sourcetype.":"
| table sourcetype tmp_sourcetype st_count st_len

 

0 Karma

sigma
Path Finder

@bowesmana  I don't think so:

sigma_0-1752050784915.png

 

0 Karma

isoutamo
SplunkTrust
SplunkTrust
Is there any possibility that there are field named sourcetype in your event?
0 Karma

sigma
Path Finder

Unfortunately No!
And after weeks yet I don't know what the problem is!

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Don't you have some search-time field defined overriding the original one?

What does the search log say (especially the LISPY part) when you search for a specific sourcetype?

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...