Splunk Enterprise

Splunk Macro

verifi81
Path Finder

I have this SPL

index="_internal" fwdType=uf | dedup hostname | table hostname

I want to create a macro called uf 

I have the macro created like this:

verifi81_0-1628816488766.png

 

I want to be able to just execute this macro in search but it doesn't look the same as if I execute the full command.

verifi81_1-1628816553225.png

 

What am I doing wrong?

 

Labels (1)
0 Karma
1 Solution

venkatasri
SplunkTrust
SplunkTrust

Hi @verifi81 

You mean its not working, the macro shall be as this , what you are using is single quote that doesn't work. 

`uf`

  

View solution in original post

0 Karma

venkatasri
SplunkTrust
SplunkTrust

Hi @verifi81 

You mean its not working, the macro shall be as this , what you are using is single quote that doesn't work. 

`uf`

  

0 Karma
Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

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