Splunk Search

field::value vs field=value when doing search

htidore
Path Finder

I have a UF, Indexer, Search Head. My UF accepts UDP packets. I created a field in the UF so that I can identify that the packet go through this particular UF:

_meta = env=env1

I performed two searches:

env=env1
env::env1

The result is different.

What is the difference between field::value and field=value when we do search?
Thanks.

Tags (1)
0 Karma

knielsen
Contributor

If you had the meta field configured correctly on your search head, you should not see a difference.

:: is forcing to treat it as an indexed field, regardless of setting it up correctly in fields.conf. Btw, the syntax in your inputs.conf should also use :: instead of =, but maybe both is possible.

Have a look at this discussion: https://answers.splunk.com/answers/389567/why-is-a-search-for-fields-added-with-meta-in-inpu.html which I found when I was having issues with :: vs =.

Hth,
Kai.

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

.conf25 Global Broadcast: Don’t Miss a Moment

Hello Splunkers, .conf25 is only a click away.  Not able to make it to .conf25 in person? No worries, you can ...

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 ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...