<?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: why do i get an Error in 'SearchParser' when i try to save my search with macros in it? in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44813#M928</link>
    <description>&lt;P&gt;When you save the search, are you selecting the option of sharing the search with others using the app? If yes, then the macros must also be shared. &lt;/P&gt;

&lt;P&gt;If the macros are private, then Splunk will give an error message if you try to save the search as a shared search.&lt;/P&gt;

&lt;P&gt;Try changing the permissions of the macros and then saving the search.&lt;/P&gt;

&lt;P&gt;(Or I could be wrong, but I think I remember having this problem myself.)&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2013 02:15:54 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2013-05-24T02:15:54Z</dc:date>
    <item>
      <title>why do i get an Error in 'SearchParser' when i try to save my search with macros in it?</title>
      <link>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44812#M927</link>
      <description>&lt;P&gt;i have a search that uses the following two macros, neither of which take arguments.&lt;/P&gt;

&lt;P&gt;exclude_URIs_docs&lt;BR /&gt;
uri!="&lt;EM&gt;/images/&lt;/EM&gt;" uri!="&lt;EM&gt;/skins&lt;/EM&gt;" uri!="/extensions*" uri!="&lt;EM&gt;/themes&lt;/EM&gt;" uri!="&lt;EM&gt;favicon&lt;/EM&gt;" uri!="/DocumentationStatic*asset*" uri!="/DocumentationStatic*resources*"       &lt;/P&gt;

&lt;P&gt;exclude_useragents_docs&lt;BR /&gt;&lt;BR /&gt;
useragent!="gsa*" useragent!="SplunkPinger*" useragent!=&lt;EM&gt;bot&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;the search runs fine, but when i try to save it, i get the following error:&lt;/P&gt;

&lt;P&gt;Error in 'SearchParser': Could not find macro 'exclude_URIs_docs' that takes 0 arguments. Expecting stanza name 'exclude_URIs_docs'.&lt;/P&gt;

&lt;P&gt;splunk hasn't been restarted since i created them, is this potentially the reason for the error? &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44812#M927</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2020-09-28T13:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: why do i get an Error in 'SearchParser' when i try to save my search with macros in it?</title>
      <link>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44813#M928</link>
      <description>&lt;P&gt;When you save the search, are you selecting the option of sharing the search with others using the app? If yes, then the macros must also be shared. &lt;/P&gt;

&lt;P&gt;If the macros are private, then Splunk will give an error message if you try to save the search as a shared search.&lt;/P&gt;

&lt;P&gt;Try changing the permissions of the macros and then saving the search.&lt;/P&gt;

&lt;P&gt;(Or I could be wrong, but I think I remember having this problem myself.)&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 02:15:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44813#M928</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-05-24T02:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: why do i get an Error in 'SearchParser' when i try to save my search with macros in it?</title>
      <link>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44814#M929</link>
      <description>&lt;P&gt;yeah, i had chosen to make the saved search public to users of my app's context, but when i created the macros, they were private by default.  this is kind of lame, since there's no way to set the permissions of a given macro in the "add new macro" page while you're making it. however, you can change these from the Manager » Advanced search » Search macros list page.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 03:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44814#M929</guid>
      <dc:creator>piebob</dc:creator>
      <dc:date>2013-05-24T03:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: why do i get an Error in 'SearchParser' when i try to save my search with macros in it?</title>
      <link>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44815#M930</link>
      <description>&lt;P&gt;Yes, and it is also a lame error message.&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2013 16:10:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/why-do-i-get-an-Error-in-SearchParser-when-i-try-to-save-my/m-p/44815#M930</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2013-05-24T16:10:16Z</dc:date>
    </item>
  </channel>
</rss>

