<?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: Help with Timechart search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458979#M129613</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;BR /&gt;
  | rename _time as Time | eval date_wday=strftime(Time,"%d/%m/%Y") | eval date_hour=strftime(Time,"%H") | stats sum(bytes) as total_bytes by date_wday, date_hour | fillnull | where total_bytes&amp;gt;=0 | table date_wday date_hour  total_bytes&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So because we are eval date_wday and date_hour, I am not able to use them for the functions. Is there a way around this?&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 01:16:53 GMT</pubDate>
    <dc:creator>chriscioffi88</dc:creator>
    <dc:date>2020-09-30T01:16:53Z</dc:date>
    <item>
      <title>Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458975#M129609</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I am just trying to get my head around a visualization that I want to create.&lt;/P&gt;

&lt;P&gt;Scenario:&lt;/P&gt;

&lt;P&gt;To identify outliers in volumes of traffic.&lt;/P&gt;

&lt;P&gt;I want to add together the total bytes (to be displayed on the X axis), and display them against days and hours of a given day (to be displayed on the Y axis). On the scatter graph I would like to see a different line for the day of the week.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..| stats sum(bytes) as total_bytes by date_wday, date_hour
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This plots each date_wday on the visualization on the same line. I would like them separated so that I would have each individual weekday represented on the visualization.&lt;/P&gt;

&lt;P&gt;Hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 15:12:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458975#M129609</guid>
      <dc:creator>chriscioffi88</dc:creator>
      <dc:date>2019-07-10T15:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458976#M129610</link>
      <description>&lt;P&gt;Have you tried timechart span=1d count by total_bytes . This should display results on a per-day basis. &lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Timechart"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.0/SearchReference/Timechart&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2019 20:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458976#M129610</guid>
      <dc:creator>khristian_p</dc:creator>
      <dc:date>2019-07-10T20:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458977#M129611</link>
      <description>&lt;P&gt;In this case it is difficult to show total_bytes  on X-axis. You can try below code with date_hour on X-axis, total_bytes on Y-axis and date_wday shown with different colors.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base query&amp;gt; | rename _time as Time | eval date_wday=strftime(Time,"%d/%m/%Y") | eval date_hour=strftime(Time,"%H") | stats sum(bytes) as total_bytes by date_wday, date_hour | fillnull | where total_bytes&amp;gt;=0 | table date_wday date_hour  total_bytes
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/274079-splunk-scatter-chart.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:12:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458977#M129611</guid>
      <dc:creator>jitendragupta</dc:creator>
      <dc:date>2020-09-30T01:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458978#M129612</link>
      <description>&lt;P&gt;Apologies, I meant total bytes on the Y and the date_hour on the X - more or less exactly like your visualization.&lt;/P&gt;

&lt;P&gt;I used your code, thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; but it is not matching any events or sticking any data into tables. &lt;/P&gt;

&lt;P&gt;I am going to try and troubleshoot this myself, but if you have any idea why, please let me know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 08:39:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458978#M129612</guid>
      <dc:creator>chriscioffi88</dc:creator>
      <dc:date>2019-07-11T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458979#M129613</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Blockquote&lt;BR /&gt;
  | rename _time as Time | eval date_wday=strftime(Time,"%d/%m/%Y") | eval date_hour=strftime(Time,"%H") | stats sum(bytes) as total_bytes by date_wday, date_hour | fillnull | where total_bytes&amp;gt;=0 | table date_wday date_hour  total_bytes&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;So because we are eval date_wday and date_hour, I am not able to use them for the functions. Is there a way around this?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 01:16:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458979#M129613</guid>
      <dc:creator>chriscioffi88</dc:creator>
      <dc:date>2020-09-30T01:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458980#M129614</link>
      <description>&lt;P&gt;I gave u a general solution using index=_internal because I don't know your actual query. If solution matches your requirements then u can modify it as per the need.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 08:58:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458980#M129614</guid>
      <dc:creator>jitendragupta</dc:creator>
      <dc:date>2019-07-11T08:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Timechart search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458981#M129615</link>
      <description>&lt;P&gt;Ok I will give it a go, but the visualization you have generated is perfect.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 09:00:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-Timechart-search/m-p/458981#M129615</guid>
      <dc:creator>chriscioffi88</dc:creator>
      <dc:date>2019-07-11T09:00:25Z</dc:date>
    </item>
  </channel>
</rss>

