|
Is it possible to search for a literal * character? If I had a string in a log that read "hi*there", and I wanted to search for it specifically |
|
Using the search language to search for a literal This is listed on the "Known Issues" page as follows:
Just to be clear, you can filter for a "*" using a post-processing search command (e.g. by using |
|
The first thing that comes to mind is a regular expression. I tried the following and it seems to work:
The values of any data with "*" inside them at any point will be stored in the field "myLiterals". Did you only want the values, or did you also want the location of these values? Ideally I'd like to just have splunk return events like it normally does with the highlighting of what it matched on inline vs extracting the data with rex. The string I'm searching for is part of a much larger query, so piping to rex would only extract that particular string.
(24 Aug '11, 11:52)
caphrim007
Ah, I see. In that case, we could use "regex" instead, which will only keep events that match the regular expression.
Is this closer to what you're after?
(24 Aug '11, 12:07)
acdevlin
3
you will want to do
(24 Aug '11, 12:39)
gkanapathy ♦
|
