hello, I was wanting to do something like
insert "some test data key=value" | search ...
No data would actually be inserted, I would just use in order to test search commands.
Thanks,
There is no command to insert data for testing. However, there are lots of ways to set up to test a search command:
index=test
at the beginning of you search.Would any of these options work?
makeresults can be used to generate search results. An example from the documentation.
| makeresults
| eval test="buttercup rarity tenderhoof dash mcintosh fleetfoot mistmane"
| makemv delim=" " test
| mvexpand test
_time | test |
2024-01-01 00:00:00 | buttercup |
2024-01-01 00:00:00 | rarity |
2024-01-01 00:00:00 | tenderhoof |
2024-01-01 00:00:00 | dash |
2024-01-01 00:00:00 | mcintosh |
2024-01-01 00:00:00 | fleetfoot |
2024-01-01 00:00:00 | mistmane |
Then you can use `search` or any other commands as usual.
| makeresults
| eval test="buttercup rarity tenderhoof dash mcintosh fleetfoot mistmane"
| makemv delim=" " test
| mvexpand test
| search test="m*"
_time | test |
2024-01-01 00:00:00 | mcintosh |
2024-01-01 00:00:00 | mistmane |
There is no command to insert data for testing. However, there are lots of ways to set up to test a search command:
index=test
at the beginning of you search.Would any of these options work?