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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...