Hi All!
I am trying to use the subsearch functionality to find a token which should be used in the main search. Pretty basic, I guess.
However, I don't think I quite understand the fundamentals. What happens with the time in the main search? What happens with the other properties? Do they influence the outer search?
If I don't return any values from the subsearch, the search results seems to be limited by the time from the hits in the subsearch. Might be expected behaviour. Search string:
index=klpi [search index=klpi 2345678910]
This results in many results over a period of time.
This search, however, only results in a a few results. And only the ones which has sessionIndex=
index=klpi [search index=klpi sessionIndex=2345678910 ]
The subsearch seems to influence the main search, but what correlation is actually performed?
Here is the actual search I've been trying. I have tried both with and without the time modification.
index=klpi sourcetype="websphere:system:out" [search index=klpi sessionIndex sourcetype="fedag:debug" | rex("sessionIndex=(?<sessionIndex>.+)") | eval earliest=_time-1000 | eval latest=_time+1000 | format "(" "(" " " ")" "OR" ")" | rename sessionIndex as search]
Although I know there are hits in the source type of the outer search in the period given by the subsearch, I receive no results.
Thank for any assistance, both on the basic understanding, and the last search.
Regards
Tor Erik
... View more