<?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: How come a specific macro ends up in generic searches and breaks some of them? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483733#M135430</link>
    <description>&lt;P&gt;Replacing the call for the macro &lt;CODE&gt;varonis_index&lt;/CODE&gt; with the explicit &lt;CODE&gt;index=&amp;lt;index name&amp;gt;&lt;/CODE&gt; solved the issue. &lt;/P&gt;</description>
    <pubDate>Tue, 26 Nov 2019 20:24:05 GMT</pubDate>
    <dc:creator>danielbb</dc:creator>
    <dc:date>2019-11-26T20:24:05Z</dc:date>
    <item>
      <title>How come a specific macro ends up in generic searches and breaks some of them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483730#M135427</link>
      <description>&lt;P&gt;We use the &lt;CODE&gt;TA-Varonis-DatAlert&lt;/CODE&gt; and it creates the &lt;CODE&gt;varonis_index&lt;/CODE&gt; macro defined as &lt;CODE&gt;index=*&lt;/CODE&gt;, which is global.&lt;/P&gt;

&lt;P&gt;When running a generic search such as &lt;CODE&gt;index = _internal sourcetype=splunkd&lt;/CODE&gt;, we see errors from all the indexers saying -&lt;/P&gt;

&lt;P&gt;-- 10-17-2019 14:38:32.526 ERROR SearchParser - The search specifies a macro &lt;CODE&gt;varonis_index&lt;/CODE&gt; that cannot be found. Reasons include: the macro name is misspelled, you do not have "read" permission for the macro, or the macro has not been shared with this application. Click Settings, Advanced search, Search Macros to view macro information. &lt;/P&gt;

&lt;P&gt;How come this specific macro ends up in such a generic search?&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2019 21:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483730#M135427</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-11-14T21:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: How come a specific macro ends up in generic searches and breaks some of them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483731#M135428</link>
      <description>&lt;P&gt;Look like the app or the macro are not global, change that if you want to use the macro outside of the app.&lt;/P&gt;

&lt;P&gt;However to have the macro apply to another search, look at :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;automatic eval fields that may be calling the macro&lt;/LI&gt;
&lt;LI&gt;tag or eventtypes calling the macro&lt;/LI&gt;
&lt;LI&gt;role search restrictions that may be using the macro&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 14 Nov 2019 22:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483731#M135428</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2019-11-14T22:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How come a specific macro ends up in generic searches and breaks some of them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483732#M135429</link>
      <description>&lt;P&gt;Thank you @yannK &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;$SPLUNK_HOME/etc/apps/TA-Varonis-DatAlert/default/eventtypes.conf&lt;/CODE&gt; starts with -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[possible_credential_stuffing_attack_from_a_single_source]
search = `varonis_index` sourcetype=varonis:ta cef_vendor="Varonis Inc." cs2="Abnormal access behavior: possible credential stuffing attack from a single source"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on the discussions with Splunk and Varonis Support teams, it seems that the &lt;CODE&gt;varonis_index&lt;/CODE&gt; macro within the eventtypes causes the macro to be embedded in searches such as  &lt;CODE&gt;index = _internal sourcetype=splunkd&lt;/CODE&gt;, which is hard for me to grasp.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2019 15:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483732#M135429</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-11-15T15:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How come a specific macro ends up in generic searches and breaks some of them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483733#M135430</link>
      <description>&lt;P&gt;Replacing the call for the macro &lt;CODE&gt;varonis_index&lt;/CODE&gt; with the explicit &lt;CODE&gt;index=&amp;lt;index name&amp;gt;&lt;/CODE&gt; solved the issue. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 20:24:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483733#M135430</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-11-26T20:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How come a specific macro ends up in generic searches and breaks some of them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483734#M135431</link>
      <description>&lt;P&gt;cool, you can probably mark the answer as accepted, it will help the other users.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 20:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483734#M135431</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2019-11-26T20:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: How come a specific macro ends up in generic searches and breaks some of them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483735#M135432</link>
      <description>&lt;P&gt;Thank you @yannK &lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2019 20:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-come-a-specific-macro-ends-up-in-generic-searches-and-breaks/m-p/483735#M135432</guid>
      <dc:creator>danielbb</dc:creator>
      <dc:date>2019-11-26T20:37:15Z</dc:date>
    </item>
  </channel>
</rss>

