Hi all,
I have
index01
which has all the web server log data that I'm interested in.
I have
index02
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
I get
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
index02
Any help would be greatly appreciated.
Thank you.
... View more