Splunk Search

search brackets and special charachters

indeed_2000
Motivator

Hi

How can search something like this: 

40: message.body.v10.timeLocalTransaction: [00*]

 

FYI: seems not support special char in search.

 

Thanks,

Labels (1)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| makeresults | eval event="40: message.body.v10.timeLocalTransaction: [001]"
| regex event="40: message.body.v10.timeLocalTransaction: \[00.+\]"

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Special characters need to be escaped

| makeresults | eval event="40: message.body.v10.timeLocalTransaction: [00*]"
| regex event="40: message.body.v10.timeLocalTransaction: \[00\*\]"
0 Karma

indeed_2000
Motivator

star is wild card not "*"

e.x

[001]

[000008]

[0032]

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| makeresults | eval event="40: message.body.v10.timeLocalTransaction: [001]"
| regex event="40: message.body.v10.timeLocalTransaction: \[00.+\]"
0 Karma

indeed_2000
Motivator

It work but slow!

is it possible to do this faster? I mean tune spl command?

 

Thanks,

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Where is it slow? Analyse the job inspector to see where processing is taking place, then look to see if you can modify the query to improve the performance. Sometimes, large amounts of data take a long time to process!

Get Updates on the Splunk Community!

.conf25 Community Recap

Hello Splunkers, And just like that, .conf25 is in the books! What an incredible few days — full of learning, ...

Splunk App Developers | .conf25 Recap & What’s Next

If you stopped by the Builder Bar at .conf25 this year, thank you! The retro tech beer garden vibes were ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...