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

Why can't I see stats values from a subsearch?

$
0
0
Hello. I want to extract timestamp data using stats list() and display that data as part of a larger search, so I run it inside of a subsearch. If I run the search as the main search, like this: "Connected" | stats list(date_hour) as myHour | eval myTime=mvindex(myHour, 5) | eval myDiff=myTime - 2 | table myDiff it works fine, and displays a number. When I run it as part of a subsearch, like this: ("This" OR "That") AND NOT ("Other" OR "Those") | join connectionId [ search "Connected" | stats list(date_hour) as myHour | eval myTime=mvindex(myHour, 5) | eval myDiff=myTime - 2 | fields myDiff] | table myDiff Nothing is displayed. The outer search works fine by itself, and the inner search works fine by itself. What am I doing wrong?

Viewing all articles
Browse latest Browse all 47296

Trending Articles



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