Splunk Search

Why am I getting error "Regex: invalid UTF-8 string" trying to filter events based on string results from a subsearch?

rescobar713
Path Finder

I'm trying to filter out events from a search based on a list of strings retrieved from the results of another search, like this:

... NOT [search ... | dedup title | eval title=substr(title, 5) | fields title]

However, I keep getting a Regex: invalid UTF-8 string error.

Is my syntax incorrect? Should I be going about this a different way?

Let me know if I can provide any additional information to help.

0 Karma
1 Solution

rescobar713
Path Finder

I figured it out. Instead of using NOT I did this:

... | where ![search ... | dedup title | eval title=substr(title, 5) | fields title]

View solution in original post

0 Karma

rescobar713
Path Finder

I figured it out. Instead of using NOT I did this:

... | where ![search ... | dedup title | eval title=substr(title, 5) | fields title]
0 Karma

woodcock
Esteemed Legend

I do not understand the error but you can do it like this and probably bypass the error:

... | dedup title | eval title=substr(title, 5) | fields title | map search="NOT $title$"
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...