I have the field devname in my raw log in the format: devname=123-fw-af-we
I am trying to write a regex string to match whenever fw is present in the field value (no matter what other characters are present in the field). However, the following is not working. Any ideas?
index=sources | regex _raw="devname=[.]+fw[.]+"
I needed to use the regex command to test the regex string for another purpose.
Turns out this works (added device_id to make the regex more precise):
index=sources | regex _raw="devname=.+fw.+device_id="
I needed to use the regex command to test the regex string for another purpose.
Turns out this works (added device_id to make the regex more precise):
index=sources | regex _raw="devname=.+fw.+device_id="
Try this (assuming devname field is extracted already)
index=sources devname="*-fw-*"