As the title reveals, I am trying to search the punct field for specific values. The punct field is naturally tricky because it includes quotation marks, dashes, and other unique characters which naturally yield search errors or throw off the search.
The search below is most likely incorrect but serves to clarify the task and an example string including problematic characters:
| search punct="___::_..__--::_..__-_-_-___:__="_':\__()\_\_\.\\.'"
The most obvious problem with this string is the double quotation mark in the middle of the string. These strings vary in form with each event record and different strings may be desired for the punct search.
In summary, how do I search the event records for specific punct field values?
You need to escape double quotes and backslashes with a backslash, then you can search for punct
values like any other field="value"
.
This is for a normal search (currently).
You need to escape double quotes and backslashes with a backslash, then you can search for punct
values like any other field="value"
.
If that's your entire search then you should leave off the | search
.
Are you saying that the search for the string in the field above would look like this?:
| search punct="___::_..__--::_..__-_-_-___:__=\"_':\\__()\\_\\_\\.\\\\.'"
Based on the punct values I see in my logs, double qoutes is the only problematic character. You can escape it with a backward slash (\). How are you providing your punct filters, through dashboard/form input?