which has all the web server log data that I'm interested in.
which has parsed a CSV containing configuration values (in this case peak period start and end hours), as well as timestamp and version columns
If I run
index="index01" // I have also tried including here OR index="index02" eventtype="myIndex01EventType" time_hour > [search index="index02" "KEY_NAME" | sort VERSION DATE | head 1 | fields VALUE | rename VALUE as time_hour // I have tried renames to "query" and "search" | convert num(time_hour)] // I have tried without the convert
Error in 'UnifiedSearch': Unable to parse the 'Invalid RHS for comparison' search.
The subsearch, if run on its own, returns a single event, with a single field called time_hour and a value of 5.
I've tried a many variants of this, but my brain is turning to mush.
My closest suspicion is that the subsearch return is somehow incompatible with the comparison (as the message indicates), be it for syntax or semantics.
In case it's not clear, I'm trying to build a search to retrieve events based on, among other things, a peak/off-peak time bracket that's defined in a monitored CSV, and indexed in
Any help would be greatly appreciated.
subsearches don't emit a number, but typically a field state. So conceptually you're saying time_hour > time_hour=x, which is where the search falls down.
There's an alternate way to get search information out of a subsearch, which is to manually construct the magic field 'search', while optionally hiding other constraining fields.
So you could set the search field in your subsearch to the value of time_hour, or simply construct the string " time_hour > hh" inside the subsearch and store it into the search field.