Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

Why are my search results differing between two index-time fields?

$
0
0
I have two **index-time** fields in my app - `barcodeKey` and `trackId`. `trackId` is derived from `barcodeKey` as a suffix. The application can search by either one of them, and most searches for the barcode and the trackId derived from it return the same set of events. However, some of the codes work only for `barcodeKey` and not `trackId`. While investigating, I ran a search for barcodeKey and built a table of barcodeKey and trackId, then clicked on trackId to "include only those results". Here is the search string which it generated: `index=myIndex sourcetype=mySourceType barcodeKey="9611019060145900336056" | search trackId=060145900336056` The search still returned the same number of events as the initial barcodeKey search. Since there is nothing transforming or renaming the fields in the above search string, shouldn't it behave exactly the same as: `index=myIndex sourcetype=mySourceType barcodeKey="9611019060145900336056" AND trackId=060145900336056` or even just the `index=myIndex sourcetype=mySourceType barcodeKey="9611019060145900336056" trackId=060145900336056`, should it? To my surprise, the last two searches returned no events! Same datetime range. In fact, I went to the search string and fully removed the `barcodeKey="..."` condition. The `index=myIndex sourcetype=mySourceType trackId=060145900336056` search returns no events. This one: `index=myIndex sourcetype=mySourceType | search trackId=060145900336056` does bring back the expected set! This is Splunk 6.3.1. I'm at a loss - any ideas what might be happening here?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>