<?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: Search by macro name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-by-macro-name/m-p/71962#M18000</link>
    <description>&lt;P&gt;Not that I know of.  Macros gets interpreted into the search string, and their original identity is pretty much lost.  Depending on the complexity of your macro, you could build eventtypes that match it (or even replace it?).  Eventtypes do retain their identity through the search and would let you do this.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2011 16:42:34 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-09-08T16:42:34Z</dc:date>
    <item>
      <title>Search by macro name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-macro-name/m-p/71961#M17999</link>
      <description>&lt;P&gt;Is there a way to count events by the name of the macros matched?&lt;/P&gt;

&lt;P&gt;Example, I have macros &lt;CODE&gt;A&lt;/CODE&gt;, &lt;CODE&gt;B&lt;/CODE&gt;, and &lt;CODE&gt;C&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Can I do a search of something equivalent to&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`A` OR `B` OR `C` | stats count(macro_name)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:34:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-macro-name/m-p/71961#M17999</guid>
      <dc:creator>blurblebot</dc:creator>
      <dc:date>2011-09-08T16:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Search by macro name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-by-macro-name/m-p/71962#M18000</link>
      <description>&lt;P&gt;Not that I know of.  Macros gets interpreted into the search string, and their original identity is pretty much lost.  Depending on the complexity of your macro, you could build eventtypes that match it (or even replace it?).  Eventtypes do retain their identity through the search and would let you do this.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2011 16:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-by-macro-name/m-p/71962#M18000</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-09-08T16:42:34Z</dc:date>
    </item>
  </channel>
</rss>

