<?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, trendline and table in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381738#M42013</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;IPs expand from left to right: &lt;A href="https://ibb.co/Bsx3ZFv"&gt;https://ibb.co/Bsx3ZFv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;After adding what you suggested it messed up my chart: &lt;A href="https://ibb.co/8c0YBRj"&gt;https://ibb.co/8c0YBRj&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What I do there is the following:&lt;BR /&gt;
I use rex to extract an IP address from the beginning of the log&lt;BR /&gt;
I exclude internal IPs&lt;BR /&gt;
Plot it on the chart&lt;BR /&gt;
Introduce new value: threshold - which equals 5 * trend&lt;BR /&gt;
and the aim of all that is to detect spikes in traffic which are bigger that threshold.&lt;/P&gt;

&lt;P&gt;Here's the example of a proper graph: &lt;A href="https://ibb.co/r7FQsf7"&gt;https://ibb.co/r7FQsf7&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the previous graph, the bars would never intersect with threshold line, hence the alert would never fire.&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 17:24:59 GMT</pubDate>
    <dc:creator>fedejko</dc:creator>
    <dc:date>2019-05-20T17:24:59Z</dc:date>
    <item>
      <title>Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381733#M42008</link>
      <description>&lt;P&gt;I am using a timechart and trendline search commands, and then I want to pipe the results into a table and add a field there:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;index=xxx sourcetype=yyy some_search_criteria&lt;BR /&gt;
| timechart  span=12h count &lt;BR /&gt;
| trendline  sma10(count) as trend&lt;BR /&gt;
| table _time count trend sourcetype &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;In the table I can see all fields populated except for "sourcetype" - they are empty.&lt;/P&gt;

&lt;P&gt;But, if I remove timechart and trendline commands, the "sourcetype" field in the table is populated.&lt;/P&gt;

&lt;P&gt;How to make it populated while using timechart and trendline?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:37:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381733#M42008</guid>
      <dc:creator>fedejko</dc:creator>
      <dc:date>2020-09-30T00:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381734#M42009</link>
      <description>&lt;P&gt;try this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| timechart span=12h count ,values(sourcetype)
| rename values(sourcetype) as sourcetype| trendline sma10(count) as trend
| table _time count trend sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Reasonable  to assume you have only 1 sourcetype per event?&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 17:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381734#M42009</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-19T17:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381735#M42010</link>
      <description>&lt;P&gt;Thank you, it works. Although I modified it slightly:&lt;/P&gt;

&lt;P&gt;Instead&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| timechart span=12h count ,values(sourcetype)&lt;BR /&gt;
| rename...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;I did the following:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;| timechart span=12h count values(sourcetype) as sourcetype&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 10:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381735#M42010</guid>
      <dc:creator>fedejko</dc:creator>
      <dc:date>2019-05-20T10:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381736#M42011</link>
      <description>&lt;P&gt;I have tried the following with another field - src_ip instead of sourcetype.&lt;BR /&gt;
With "sourcetype" I had only 1 sourcetype per event.&lt;BR /&gt;
With src_ip I've got more.&lt;/P&gt;

&lt;P&gt;They appear in a table one after another, and if I want to exclude IP addresses from "10.*" range - nothing happens, because if in the table, I've got:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;10.1.1.1 80.10.20.30 212.123.21.12 &lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;and if I exclude 10.* using | search src_ip!="10.*" then nothing appears there, because 10.1.1.1 was among the results.&lt;/P&gt;

&lt;P&gt;How to correct it?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381736#M42011</guid>
      <dc:creator>fedejko</dc:creator>
      <dc:date>2020-09-30T00:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381737#M42012</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/178948"&gt;@fedejko&lt;/a&gt;  - so this scr_ip has multiple values the output you are referring to probably comes combined together vertically and not horizontally in a single field? Something like this - &lt;BR /&gt;
10.1.1.1&lt;BR /&gt;
80.10.20.30&lt;BR /&gt;
212.123.21.12 &lt;BR /&gt;
If this is correct before the trendline add this code, so your code looks something like this :&lt;BR /&gt;
    | timechart span=12h count values(src_ip) as src_ip&lt;/P&gt;

&lt;P&gt;add this &lt;BR /&gt;
    | timechart span=12h count values(src_ip) as src_ip|mvexpand src_ip |rest of your trendline and table commands...&lt;BR /&gt;
If my understanding is not correct, please provide a screen shot of your as is and to be outputs.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:36:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381737#M42012</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2020-09-30T00:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381738#M42013</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;IPs expand from left to right: &lt;A href="https://ibb.co/Bsx3ZFv"&gt;https://ibb.co/Bsx3ZFv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;After adding what you suggested it messed up my chart: &lt;A href="https://ibb.co/8c0YBRj"&gt;https://ibb.co/8c0YBRj&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What I do there is the following:&lt;BR /&gt;
I use rex to extract an IP address from the beginning of the log&lt;BR /&gt;
I exclude internal IPs&lt;BR /&gt;
Plot it on the chart&lt;BR /&gt;
Introduce new value: threshold - which equals 5 * trend&lt;BR /&gt;
and the aim of all that is to detect spikes in traffic which are bigger that threshold.&lt;/P&gt;

&lt;P&gt;Here's the example of a proper graph: &lt;A href="https://ibb.co/r7FQsf7"&gt;https://ibb.co/r7FQsf7&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the previous graph, the bars would never intersect with threshold line, hence the alert would never fire.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 17:24:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381738#M42013</guid>
      <dc:creator>fedejko</dc:creator>
      <dc:date>2019-05-20T17:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart, trendline and table</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381739#M42014</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;IPs expand from left to right: &lt;A href="https://ibb.co/Bsx3ZFv"&gt;https://ibb.co/Bsx3ZFv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;After adding what you suggested it messed up my chart: &lt;A href="https://ibb.co/8c0YBRj"&gt;https://ibb.co/8c0YBRj&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What I do there is the following:&lt;BR /&gt;
I use rex to extract an IP address from the beginning of the log&lt;BR /&gt;
I exclude internal IPs&lt;BR /&gt;
Plot it on the chart&lt;BR /&gt;
Introduce new value: threshold - which equals 5 * trend&lt;BR /&gt;
and the aim of all that is to detect spikes in traffic which are bigger that threshold.&lt;/P&gt;

&lt;P&gt;Here's the example of a proper graph: &lt;A href="https://ibb.co/r7FQsf7"&gt;https://ibb.co/r7FQsf7&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the previous graph, the bars would never intersect with threshold line, hence the alert would never fire.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 17:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Timechart-trendline-and-table/m-p/381739#M42014</guid>
      <dc:creator>fedejko</dc:creator>
      <dc:date>2019-05-20T17:39:21Z</dc:date>
    </item>
  </channel>
</rss>

