Knowledge Management

Is it possible to use macro in post process?

ma_anand1984
Contributor

Hi all,

Is it possible to use macro in post process?

Anand

Tags (2)
0 Karma
1 Solution

melting
Splunk Employee
Splunk Employee

Yes it is. Here is an example:

<module name="HiddenSearch" layoutPanel="panel_row1_col1" group="foo" autoRun="True">
  <param name="groupLabel">foo</param>
  <param name="search">index=_internal | head 5</param>
    <module name="HiddenPostProcess">
      <param name="search">`head`</param>
      <module name="JobProgressIndicator"/>
      <module name="Paginator">
        <param name="count">10</param>
        <param name="entityName">results</param>
        <module name="EnablePreview">
          <param name="enable">True</param>
          <param name="display">False</param>
          <module name="SimpleResultsTable">
            <param name="allowTransformedFieldSelect">True</param>
            <param name="entityName">results</param>
            <param name="drilldown">row</param>
            <module name="Gimp"/>
          </module>
          <module name="ViewRedirectorLink">
            <param name="viewTarget">flashtimeline</param>
          </module>
        </module>
      </module>
    </module>
  </module>

View solution in original post

melting
Splunk Employee
Splunk Employee

Yes it is. Here is an example:

<module name="HiddenSearch" layoutPanel="panel_row1_col1" group="foo" autoRun="True">
  <param name="groupLabel">foo</param>
  <param name="search">index=_internal | head 5</param>
    <module name="HiddenPostProcess">
      <param name="search">`head`</param>
      <module name="JobProgressIndicator"/>
      <module name="Paginator">
        <param name="count">10</param>
        <param name="entityName">results</param>
        <module name="EnablePreview">
          <param name="enable">True</param>
          <param name="display">False</param>
          <module name="SimpleResultsTable">
            <param name="allowTransformedFieldSelect">True</param>
            <param name="entityName">results</param>
            <param name="drilldown">row</param>
            <module name="Gimp"/>
          </module>
          <module name="ViewRedirectorLink">
            <param name="viewTarget">flashtimeline</param>
          </module>
        </module>
      </module>
    </module>
  </module>

Ayn
Legend

Yes, it is.

ma_anand1984
Contributor

is it possible in saved search as well ?

0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

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

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 ...

Wondering How to Build Resiliency in the Cloud?

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