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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...