Splunk Search

Need the output of list of usernames and timestamp of the event in the splunk string

ravir_jbp
Explorer

 

 

Need the output of list of usernames and timestamp of the event in the splunk string for below event. We have list of users that I need to see logged in the event.

2021-02-12 03:15:37,681 ERROR [com.avc.services.avc.service.HoverTextService] - Unexpected exception in hovertext() Message: Invalid 'username' value: user 'test1' does not exist in system""""



Currently I am using search like:

index=abc "Invalid 'username'" Message | rex "user\ \'(?<user>[^\']*)\"" 

But I am not getting the expected results. I am expecting the results like:

username         timestamp

user1                   2021-02-12 03:15:37

user2                  2021-02-12 03:15:37

 

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

It looks like the last escaped double quote should be an escaped single quote

index=abc "Invalid 'username'" Message | rex "user\ \'(?<user>[^\']*)\'"
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...