Splunk Search

Regex for getting only the bold?

f_666dhn
Explorer

I have field log-sshd like this:

log-sshd="Apr 5 xx:xx:xx serverhost sshd[xxxx]: Failed password for user xxx from xx.xx.xxx.xx port xxxx ssh2"

What is the SPL search if i just wanna get the word that i bolded ?

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| rex "\]:(?<message>.*)"

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
| rex "\]:(?<message>.*)"

f_666dhn
Explorer

Thanks

0 Karma
Get Updates on the Splunk Community!

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...

Adoption of Infrastructure Monitoring at Splunk

  Splunk's Growth Engineering team showcases one of their first Splunk product adoption-Splunk Infrastructure ...

Modern way of developing distributed application using OTel

Recently, I had the opportunity to work on a complex microservice using Spring boot and Quarkus to develop a ...