<?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: charting time - using time within a lookup in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410071#M118290</link>
    <description>&lt;P&gt;This is what I have. I do have a field called 'count' in my lookup that I don't care about.  Here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mylookup.csv 
| convert timeformat="%Y-%m-%dT%H:%M:%S" mktime(_time) as _time
| rename count as count_c
| timechart span=1d sum(count) as Daily_Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see that _time is display the days, but Daily_Total is NULL (blank)??&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 19:37:44 GMT</pubDate>
    <dc:creator>brdr</dc:creator>
    <dc:date>2020-09-29T19:37:44Z</dc:date>
    <item>
      <title>charting time - using time within a lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410069#M118288</link>
      <description>&lt;P&gt;I have a lookup file with about 100K events. What I want to do is use timechart (span each day).  There is a time field in the lookup called '_time'.  I have:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mylookup.csv
| timechart span=1d sum(count)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Can I do this?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 17:58:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410069#M118288</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-05-24T17:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: charting time - using time within a lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410070#M118289</link>
      <description>&lt;P&gt;You can use timechart command as long as _time field in your lookup has date in epoch format. You can use sum(count) if there is a field count exists in the lookup.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 18:25:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410070#M118289</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-24T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: charting time - using time within a lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410071#M118290</link>
      <description>&lt;P&gt;This is what I have. I do have a field called 'count' in my lookup that I don't care about.  Here is my search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup mylookup.csv 
| convert timeformat="%Y-%m-%dT%H:%M:%S" mktime(_time) as _time
| rename count as count_c
| timechart span=1d sum(count) as Daily_Total
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I see that _time is display the days, but Daily_Total is NULL (blank)??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:37:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410071#M118290</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2020-09-29T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: charting time - using time within a lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410072#M118291</link>
      <description>&lt;P&gt;So what you want your query to do, show count of entries in the lookup per day or sum of some field's value? If you just want to see how many entries falls into a day, just use function &lt;CODE&gt;count&lt;/CODE&gt; (no need to specify a field if just counting events).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup mylookup.csv 
 | convert timeformat="%Y-%m-%dT%H:%M:%S" mktime(_time) as _time
 | timechart span=1d count as Daily_Total
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 May 2018 19:15:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410072#M118291</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-24T19:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: charting time - using time within a lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410073#M118292</link>
      <description>&lt;P&gt;ah man... thank you somesoni2! &lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410073#M118292</guid>
      <dc:creator>brdr</dc:creator>
      <dc:date>2018-05-24T19:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: charting time - using time within a lookup</title>
      <link>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410074#M118293</link>
      <description>&lt;P&gt;@brdr if your issue is resolved, do accept the answer to mark this question as answered.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 07:57:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/charting-time-using-time-within-a-lookup/m-p/410074#M118293</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-05-25T07:57:49Z</dc:date>
    </item>
  </channel>
</rss>

