Dashboards & Visualizations

Why does rex in dashboard says missing terminator - #2?

VTARNG_Paul
Explorer

I appreciate any any assistance with my Rex error.

When running this Rex command:

| rex "New Logon:\s+Security ID:\s+(?<account>.*)"

I receive the following error, "Rex in dashboard says missing terminator"

Thanks in advance!

Labels (1)
0 Karma
1 Solution

VTARNG_Paul
Explorer

Thank you sir, you have resolved my issue. 

/Paul

View solution in original post

0 Karma

richgalloway
SplunkTrust
SplunkTrust

That error message means the parser didn't understand the regular expression.  Usually, it's because a quotation mark was not escaped properly.  In this case, however, it's because the regex contains HTML-encoded < and > characters.  Unencode them and the rex should work.

---
If this reply helps you, Karma would be appreciated.
0 Karma

VTARNG_Paul
Explorer

Good morning Rich,

I appreciate your response, but I am not understanding your explanation " because the regex contains HTML-encoded < and > characters." as I do not see the < and > characters.

Could you highlight or modify the rex script with the proper syntax required for it to work correctly?

Cheers, Paul

0 Karma

richgalloway
SplunkTrust
SplunkTrust

You don't see the < and > characters because they are HTML-encoded.  IOW, change &lt; to < and &gt; to >.

---
If this reply helps you, Karma would be appreciated.

VTARNG_Paul
Explorer

Thank you sir, you have resolved my issue. 

/Paul

0 Karma

VatsalJagani
SplunkTrust
SplunkTrust

@VTARNG_Paul - If that resolves your answer consider accepting the solution for the reply which is most relevant so in the future new community members can get benefit from that as well.

You can do that by clicking on the "Accept as Solution" button at the bottom of the reply.

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...