<?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 to modify a function in a report for 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-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171702#M16467</link>
    <description>&lt;P&gt;Hi, I found the macros.conf file for this and commented out the original macro and replaced with what you gave.  I get this error when I try and run the report now, I am pretty new to this so honestly dont know which part would be causing...&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: The expression is malformed. An unexpected character is reached at '*."\""'.&lt;/P&gt;

&lt;P&gt;If its an easy one I would appreciate it  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Thank you for the help!&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2014 14:12:46 GMT</pubDate>
    <dc:creator>soleblazer</dc:creator>
    <dc:date>2014-08-06T14:12:46Z</dc:date>
    <item>
      <title>How to modify a function in a report for Splunk App for Unix and Linux?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171700#M16465</link>
      <description>&lt;P&gt;Hi there.&lt;/P&gt;

&lt;P&gt;I'm fairly new to Splunk, so apologize if this is an easy one.  I have setup Splunk's App for Unix..its collecting all the info very well from about 10 servers.  My question is about the Reports that it provides.  In the search app, if I go to reports I see lots of great reports created by the Splunk App for Unix.  There is one that shows load average.  I want to modify that so I can only show just certain groups of hosts.  If I edit, instead of the search language, I just see a function in the search bar called &lt;CODE&gt;Percent_Load_by_Host(*)&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I'd like to be able to do something like 'Percent_Load_by_Host(server1,server3,etc) but if I enter more than one field it complains.  So my question is, how can I modify this report and be able to use it for more than just showing the load average for everything?  Thank you very much, still learning this.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171700#M16465</guid>
      <dc:creator>soleblazer</dc:creator>
      <dc:date>2020-09-28T17:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a function in a report for Splunk App for Unix and Linux?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171701#M16466</link>
      <description>&lt;P&gt;It is a macro and its definitions is like this (macros.conf)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Percent_Load_by_Host(1)]
args = host
definition = `os_index` `memory_sourcetype` host=$host$ | timechart avg(loadAvg1mi) by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the defintion to something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[Percent_Load_by_Host(1)]
    args = host
    definition = `os_index` `memory_sourcetype` [|gentimes start=-1 | eval host="\"".$host$."\"" | table host | makemv host delim="," | mvexpand host ] | timechart avg(loadAvg1mi) by host 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now you can pass &lt;CODE&gt;"*"&lt;/CODE&gt; or comma separated list of host (host1,host2,host3).&lt;/P&gt;</description>
      <pubDate>Tue, 05 Aug 2014 18:37:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171701#M16466</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-05T18:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to modify a function in a report for Splunk App for Unix and Linux?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171702#M16467</link>
      <description>&lt;P&gt;Hi, I found the macros.conf file for this and commented out the original macro and replaced with what you gave.  I get this error when I try and run the report now, I am pretty new to this so honestly dont know which part would be causing...&lt;/P&gt;

&lt;P&gt;Error in 'eval' command: The expression is malformed. An unexpected character is reached at '*."\""'.&lt;/P&gt;

&lt;P&gt;If its an easy one I would appreciate it  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  Thank you for the help!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/How-to-modify-a-function-in-a-report-for-Splunk-App-for-Unix-and/m-p/171702#M16467</guid>
      <dc:creator>soleblazer</dc:creator>
      <dc:date>2014-08-06T14:12:46Z</dc:date>
    </item>
  </channel>
</rss>

