Splunk Search

Why does a join query not return results unless I give specific field values?

jamesvz84
Communicator

Hello,

I am noticing the following strange behavior with a join. It is actually not returning results when I use a ****, but returns results when I provide the specific IP instead of * (thus returning no results after "casting a wider net"):

======================================
QUERY 1:
index=devices-syslog-ng DeviceName=TESTDEV earliest=05/21/2015:00:00:00 latest=05/23/2015:00:00:00 RemoteIP="46.32.233.226" | join joinkey1 [search index=CONN earliest=05/21/2015:00:00:00 latest=05/23/2015:00:00:00 RemoteIP="****"] | search CID=18858272

NO RESULTS

======================================

QUERY 2:
index=devices-syslog-ng DeviceName=TESTDEV earliest=05/21/2015:00:00:00 latest=05/23/2015:00:00:00 RemoteIP="46.32.233.226" | join joinkey1 [search index=CONN earliest=05/21/2015:00:00:00 latest=05/23/2015:00:00:00 RemoteIP="46.32.233.226"] | search CID=18858272

42 RESULTS

======================================

Any ideas why this may be happening? I have also tried adjusting limits.conf:

[join]
subsearch_maxout = 0
subsearch_maxtime = 0
subsearch_timeout = 0

[subsearch]

maximum number of results to return from a subsearch

maxout = 0

maximum number of seconds to run a subsearch before finalizing

maxtime = 0

time to cache a given subsearch's results

ttl = 0

[searchresults]
maxresultrows = 0

maximum number of times to try in the atomic write operation (1 = no retries)

tocsv_maxretry = 5

retry period is 1/2 second (500 milliseconds)

tocsv_retryperiod_ms = 500

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

Take a look at this question and answer for how to replace join with stats: http://answers.splunk.com/answers/129424/how-to-compare-fields-over-multiple-sourcetypes-without-joi...

stephanefotso
Motivator

Hello! Did you try RemoteIP=*? whithout ""?

SGF
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

That makes no difference whatsoever.

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!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...