Trying to run a query that has a token field. The output injects a space before and after the token provided keyword, which breaks the query.. Simple, but baffling.
Original query
|inp...
See more...
Trying to run a query that has a token field. The output injects a space before and after the token provided keyword, which breaks the query.. Simple, but baffling.
Original query
|inputlookup somelookup.csv
| eval raw="" | foreach * [eval raw=raw.",".coalesce('<<FIELD>>',"") ] | search raw="*$token$*"
| table field1, field2, field3
Output of query
|inputlookup somelookup.csv
| eval raw="" | foreach * [eval raw=raw.",".coalesce('<<FIELD>>',"") ] | search raw="* <keyword> *"
| table field1, field2, field3
How do I get rid of the spaces before and after the keyword?