<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: macro with localop? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94125#M957</link>
    <description>&lt;P&gt;Vincent,&lt;/P&gt;

&lt;P&gt;You can have macros that make use of generating commands, but the error is likely correct in that certain search commands (i.e. metadata) must be the first command of a search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;## macros.conf
[metadata]
definition = metadata type=hosts index=*
iseval = 0

## search
| `metadata`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 May 2011 17:01:39 GMT</pubDate>
    <dc:creator>hazekamp</dc:creator>
    <dc:date>2011-05-03T17:01:39Z</dc:date>
    <item>
      <title>macro with localop?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94124#M956</link>
      <description>&lt;P&gt;Is there any way to start a macro with a generator command? I get the error "The command must be the first command of a search."&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 15:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94124#M956</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-05-03T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: macro with localop?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94125#M957</link>
      <description>&lt;P&gt;Vincent,&lt;/P&gt;

&lt;P&gt;You can have macros that make use of generating commands, but the error is likely correct in that certain search commands (i.e. metadata) must be the first command of a search.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;## macros.conf
[metadata]
definition = metadata type=hosts index=*
iseval = 0

## search
| `metadata`
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 May 2011 17:01:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94125#M957</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-05-03T17:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: macro with localop?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94126#M958</link>
      <description>&lt;P&gt;We figured that out, but it's kinda lame. It'd be nice to have the pipe in the definition.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 17:03:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94126#M958</guid>
      <dc:creator>vbumgarner</dc:creator>
      <dc:date>2011-05-03T17:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: macro with localop?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94127#M959</link>
      <description>&lt;P&gt;It is lame. Can you do it if you make it into an &lt;CODE&gt;iseval=1&lt;/CODE&gt; definition returning a string?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2011 18:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/macro-with-localop/m-p/94127#M959</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-05-03T18:39:20Z</dc:date>
    </item>
  </channel>
</rss>

