<?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: Working with loadjob in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133968#M3026</link>
    <description>&lt;P&gt;I've recreated your table like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=2h | eval day=1 | accum day | eval day="day".day | eval host0#10=random()%50 | eval host1#20=random()%50 | eval host2#30=random()%50 | eval host3#40=random()%50 | eval host4#50=random()%50 | fields day host*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on that, this may be the postprocessing you're looking for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats avg(*) as * | transpose | rename "row 1" as average column as host | eval limit=replace(host, "^.*?#", "") | where average &amp;lt; limit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Compute averages, transpose and rename results, select part after "#", compare with average.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Feb 2014 10:26:22 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2014-02-01T10:26:22Z</dc:date>
    <item>
      <title>Working with loadjob</title>
      <link>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133967#M3025</link>
      <description>&lt;P&gt;Hi, I am hoping you can help me here. &lt;BR /&gt;
I am running a search out of a saved search using the load job.. I did something like :&lt;BR /&gt;
|loadjob savedsearch="abc:search:my search" &lt;/P&gt;

&lt;P&gt;This produces a table of field cols that look like host1#maxpings , host2#maxpings etc.. Where max pings s the maximum pings that the host can have. Under these columns are the daily pingNumbers for these hosts.&lt;BR /&gt;
something like :&lt;BR /&gt;
           …...&lt;/P&gt;

&lt;P&gt;-………… host1#23…………. host2#56.1&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;day1    ………...3………………………..4&lt;/LI&gt;
&lt;LI&gt;day2    ………..10……………………..11&lt;/LI&gt;
&lt;LI&gt;day3  ………..20……………………….50&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I need to find out if the average pings for 3 days is more than the numbering the column name. for example : in the above, I need to find for column1, (3+10+20)/3 &amp;lt; 23 and for column2 (4+11+50)/3 &amp;lt; 56.1 … I should then show only those columns, where the avg number is less than the number in the column…&lt;BR /&gt;
&lt;STRONG&gt;&lt;EM&gt;i want to pseudocode something like |loadjob savedsearch="abc:search:my search" | stats avg(*) as average(*) | where average &amp;lt;  substring-after( col-name,'#')&lt;/EM&gt;&lt;/STRONG&gt; . So that this will show only those columns where the average is less than the number in the column.&lt;BR /&gt;
I am losing hopes on the help from google and splunk docs. Help with this will be highly appreciated.&lt;BR /&gt;
Thanks in advance.&lt;BR /&gt;
dT&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2014 02:37:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133967#M3025</guid>
      <dc:creator>daktapaal</dc:creator>
      <dc:date>2014-02-01T02:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Working with loadjob</title>
      <link>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133968#M3026</link>
      <description>&lt;P&gt;I've recreated your table like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 increment=2h | eval day=1 | accum day | eval day="day".day | eval host0#10=random()%50 | eval host1#20=random()%50 | eval host2#30=random()%50 | eval host3#40=random()%50 | eval host4#50=random()%50 | fields day host*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Based on that, this may be the postprocessing you're looking for:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats avg(*) as * | transpose | rename "row 1" as average column as host | eval limit=replace(host, "^.*?#", "") | where average &amp;lt; limit
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Compute averages, transpose and rename results, select part after "#", compare with average.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2014 10:26:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133968#M3026</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-02-01T10:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: Working with loadjob</title>
      <link>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133969#M3027</link>
      <description>&lt;P&gt;cool. thanks.I figured this out last night &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2014 19:07:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Working-with-loadjob/m-p/133969#M3027</guid>
      <dc:creator>Rmddas</dc:creator>
      <dc:date>2014-02-01T19:07:53Z</dc:date>
    </item>
  </channel>
</rss>

