Splunk Search

Macro with tsats query returns no results.

jscraig2006
Communicator

I've created several macros with a tstat query. when running the macro through the UI, no results are displayed. When I run the tstat through the UI, i get results. I do not have a pipe in front of the query in the macro. Permissions are set to Global for the macro. My Splunk infrastructure is distributed with clustered search peers. Is it possible that the macros are not being expanded and the bundles are not being replicated to the peers?

0 Karma
1 Solution

jscraig2006
Communicator

I always seem to answer my own questions. since macro tstat commands do not start with a | i needed to add it before the macro name in the UI. | macro_name.

View solution in original post

0 Karma

jscraig2006
Communicator

I always seem to answer my own questions. since macro tstat commands do not start with a | i needed to add it before the macro name in the UI. | macro_name.

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...