<?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 as VS Timechart by in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434548#M167692</link>
    <description>&lt;P&gt;With "by src" you have 1 result per event, it's not one value.&lt;BR /&gt;
With "as src" you have 1  "count" result renamed in "src".&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 14:21:46 GMT</pubDate>
    <dc:creator>andreacorvini</dc:creator>
    <dc:date>2018-08-29T14:21:46Z</dc:date>
    <item>
      <title>Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434547#M167691</link>
      <description>&lt;P&gt;Over the last 3 days I was trying to create dashboard with single value + trends.&lt;/P&gt;

&lt;P&gt;The query was something like this:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| dedup 1 src | timechart count by src&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;The goal was to get total number of src based on dashboard time range (before talking about the trends).&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;right now, by mistake (must be honest), I changed the query so I replaced the word by with as and it seems to work but not perfectly - when I change the time range to all time i expect to see all events but I get only one of them (although there are 5 events in results):&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Can someone please tell me why I got confused and to translate my goal above into query correctly for next time?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:02:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434547#M167691</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2018-08-29T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434548#M167692</link>
      <description>&lt;P&gt;With "by src" you have 1 result per event, it's not one value.&lt;BR /&gt;
With "as src" you have 1  "count" result renamed in "src".&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434548#M167692</guid>
      <dc:creator>andreacorvini</dc:creator>
      <dc:date>2018-08-29T14:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434549#M167693</link>
      <description>&lt;P&gt;Hi @shayhibah, &lt;/P&gt;

&lt;P&gt;so  what you are doing with your first search will split the timechart count by your Source IP.&lt;BR /&gt;
So you basically count e.g. every hour how many Source IPs have been seen and split this value by each unique Source IP.&lt;/P&gt;

&lt;P&gt;When using &lt;CODE&gt;AS&lt;/CODE&gt; or &lt;CODE&gt;as&lt;/CODE&gt; instead of &lt;CODE&gt;by&lt;/CODE&gt; you are renaming the count field as "src"&lt;BR /&gt;
You are now creating a count of all the Source IPs that where seen in e.g. an hour over time.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:21:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434549#M167693</guid>
      <dc:creator>horsefez</dc:creator>
      <dc:date>2018-08-29T14:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434550#M167694</link>
      <description>&lt;P&gt;If you are looking for the total number of different srcs in any given time period, then use this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | timechart dc(src) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434550#M167694</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2018-08-29T14:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434551#M167695</link>
      <description>&lt;P&gt;@DalJeanis &lt;BR /&gt;
next to events tab I still see 5 but when I visualize it using single value, I see only 1&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434551#M167695</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2018-08-29T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434552#M167696</link>
      <description>&lt;P&gt;@pyro_wood&lt;BR /&gt;
Thank you for the clarification, but if so,  I see 5 events but when I visualize it using single value - I see only 1 instead of 5&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:36:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434552#M167696</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2018-08-29T14:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434553#M167697</link>
      <description>&lt;P&gt;@andreacorvini&lt;BR /&gt;
Thank you for the clarification, but if so,  I see 5 events but when I visualize it using single value - I see only 1 instead of 5&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434553#M167697</guid>
      <dc:creator>shayhibah</dc:creator>
      <dc:date>2018-08-29T14:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434554#M167698</link>
      <description>&lt;P&gt;Yes, you see 1 "count" field with value=5. No?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 14:50:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434554#M167698</guid>
      <dc:creator>andreacorvini</dc:creator>
      <dc:date>2018-08-29T14:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart as VS Timechart by</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434555#M167699</link>
      <description>&lt;P&gt;&lt;CODE&gt;| timechart count as src&lt;/CODE&gt;  is the right code (count of "src" events renamed in "src").&lt;/P&gt;

&lt;P&gt;If you use "count by src" and you have deduplicated "by src" in the previous action, you can have always 1 as result (1 event per "src").&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 15:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Timechart-as-VS-Timechart-by/m-p/434555#M167699</guid>
      <dc:creator>andreacorvini</dc:creator>
      <dc:date>2018-08-29T15:05:38Z</dc:date>
    </item>
  </channel>
</rss>

