<?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: timechart avg(bytes) by... not working with predict in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334699#M99468</link>
    <description>&lt;P&gt;sounds good to me. I will find another way to do my alert.  arigato gozaimasu&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2017 04:58:47 GMT</pubDate>
    <dc:creator>erickyi</dc:creator>
    <dc:date>2017-10-26T04:58:47Z</dc:date>
    <item>
      <title>timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334694#M99463</link>
      <description>&lt;P&gt;I tried various combinations but failed&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;index="flowintegrator" src_port=21&lt;BR /&gt;
|eval thisUser=src_ip + "="+ dest_ip&lt;BR /&gt;
| timechart avg(bytes) as volume by&lt;BR /&gt;
thisUser|predict thisUser&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;index="flowintegrator" src_port=21&lt;BR /&gt;
|eval thisUser=src_ip + "="+ dest_ip&lt;BR /&gt;
| timechart avg(bytes) as avg_bytes&lt;BR /&gt;
by thisUser|predict avg_bytes&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;This works but I can't predict.&lt;BR /&gt;
index="flowintegrator" src_port=21 |eval thisUser=src_ip + "="+ dest_ip | timechart avg(bytes) as avg_bytes by thisUser&lt;/P&gt;

&lt;P&gt;Help&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334694#M99463</guid>
      <dc:creator>erickyi</dc:creator>
      <dc:date>2020-09-29T16:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334695#M99464</link>
      <description>&lt;P&gt;forgot to mention about the error in predict&lt;BR /&gt;
e.g.&lt;BR /&gt;
&lt;STRONG&gt;Command: predict,  unknown field: avg_bytes&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 00:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334695#M99464</guid>
      <dc:creator>erickyi</dc:creator>
      <dc:date>2017-10-26T00:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334696#M99465</link>
      <description>&lt;P&gt;See the result of timechart.Field name is wrong.&lt;BR /&gt;
Since predict can not use wildcards, you must specify all field names. &lt;BR /&gt;
However, since "=" can not be used, please change it to "_".&lt;/P&gt;

&lt;P&gt;ex.&lt;BR /&gt;
|predict "127.0.0.1_127.0.0.2" "127.0.0.1_127.0.0.3" "127.0.0.1_127.0.0.4" ･･･&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:28:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334696#M99465</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2020-09-29T16:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334697#M99466</link>
      <description>&lt;P&gt;thank you HIroshi-san, &lt;BR /&gt;
|predict 127.0.0.1_127.0.0.2  works &lt;BR /&gt;
However, the thisUser is dynamic, how can I pass this range of thisUser to predict? If this is not possible, I will mark your answer as correct.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 04:38:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334697#M99466</guid>
      <dc:creator>erickyi</dc:creator>
      <dc:date>2017-10-26T04:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334698#M99467</link>
      <description>&lt;P&gt;If you look at the predict manual you can not use wildcards in the field list.&lt;BR /&gt;
So I think that dynamic designation can not be done.&lt;/P&gt;

&lt;P&gt;ex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;predict &amp;lt;field-list&amp;gt;
table &amp;lt;wc-field-list&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Oct 2017 04:52:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334698#M99467</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2017-10-26T04:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334699#M99468</link>
      <description>&lt;P&gt;sounds good to me. I will find another way to do my alert.  arigato gozaimasu&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 04:58:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334699#M99468</guid>
      <dc:creator>erickyi</dc:creator>
      <dc:date>2017-10-26T04:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: timechart avg(bytes) by... not working with predict</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334700#M99469</link>
      <description>&lt;P&gt;just thought of something, given my date span is per 7 days, i can rename the ipUser. &lt;BR /&gt;
|rename "127*" as ip* |predict ip1, ip2, ip3, ip4, ip5, ip6, ip7&lt;/P&gt;

&lt;P&gt;Thanks for the inspiration. (y)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:28:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-avg-bytes-by-not-working-with-predict/m-p/334700#M99469</guid>
      <dc:creator>erickyi</dc:creator>
      <dc:date>2020-09-29T16:28:51Z</dc:date>
    </item>
  </channel>
</rss>

