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 2024 SplunkTrust!

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

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...