<?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 How to locate and edit an existing macro search from an app (Splunk App for Unix and Linux)? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-locate-and-edit-an-existing-macro-search-from-an-app/m-p/275948#M32239</link>
    <description>&lt;P&gt;Is there anyway to locate and edit an existing macro search from an App (SA-nix) in this case?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    CPU_Exceeds_Percent_by_Host
        Open in Search Edit
        admin   SA-nix  Global

    CPU_Under_Percent_by_Host
        Open in Search Edit
        admin   SA-nix  Global

    Disk_Used_Exceeds_Perc_by_Host
        Open in Search Edit
        admin   SA-nix  Global

    IO_Utilization_Exceeds_Threshold
        Open in Search Edit
        admin   SA-nix  Global

    IO_Wait_Exceeds_Threshold
        Open in Search Edit
        admin   SA-nix  Global
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example search macro from SA-nix. If I try to append it with function I got an error. Thoughts?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`CPU_Exceeds_Percent_by_Host("`_unix_alert_threshold_CPU_Exceeds_Percent_by_Host`")` 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This results in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'fields' command: Invalid argument: 'earliest=-30m' 
`CPU_Exceeds_Percent_by_Host("`_unix_alert_threshold_CPU_Exceeds_Percent_by_Host`")` earliest=-30m
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Dec 2015 21:57:29 GMT</pubDate>
    <dc:creator>leochan</dc:creator>
    <dc:date>2015-12-09T21:57:29Z</dc:date>
    <item>
      <title>How to locate and edit an existing macro search from an app (Splunk App for Unix and Linux)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-locate-and-edit-an-existing-macro-search-from-an-app/m-p/275948#M32239</link>
      <description>&lt;P&gt;Is there anyway to locate and edit an existing macro search from an App (SA-nix) in this case?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    CPU_Exceeds_Percent_by_Host
        Open in Search Edit
        admin   SA-nix  Global

    CPU_Under_Percent_by_Host
        Open in Search Edit
        admin   SA-nix  Global

    Disk_Used_Exceeds_Perc_by_Host
        Open in Search Edit
        admin   SA-nix  Global

    IO_Utilization_Exceeds_Threshold
        Open in Search Edit
        admin   SA-nix  Global

    IO_Wait_Exceeds_Threshold
        Open in Search Edit
        admin   SA-nix  Global
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;An example search macro from SA-nix. If I try to append it with function I got an error. Thoughts?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`CPU_Exceeds_Percent_by_Host("`_unix_alert_threshold_CPU_Exceeds_Percent_by_Host`")` 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This results in:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error in 'fields' command: Invalid argument: 'earliest=-30m' 
`CPU_Exceeds_Percent_by_Host("`_unix_alert_threshold_CPU_Exceeds_Percent_by_Host`")` earliest=-30m
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:57:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-locate-and-edit-an-existing-macro-search-from-an-app/m-p/275948#M32239</guid>
      <dc:creator>leochan</dc:creator>
      <dc:date>2015-12-09T21:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate and edit an existing macro search from an app (Splunk App for Unix and Linux)?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-locate-and-edit-an-existing-macro-search-from-an-app/m-p/275949#M32240</link>
      <description>&lt;P&gt;its not advisable to change the objects which are part of an app because when you upgrade the app, all your changes will be overwritten. You can write a different macro and use it in case needed.&lt;/P&gt;

&lt;P&gt;However, macros are available on disk &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$SPUNK_HOME/etc/apps/SA-nix/default/macros.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Copy the default macros to $SPUNK_HOME/etc/apps/SA-nix/local/macros.conf and make changes if you still require&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 04:08:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-locate-and-edit-an-existing-macro-search-from-an-app/m-p/275949#M32240</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2015-12-10T04:08:08Z</dc:date>
    </item>
  </channel>
</rss>

