<?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: How to display a chart with correct date order from the lookup table in the dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374370#M24483</link>
    <description>&lt;P&gt;Hi @Hemnaath,&lt;BR /&gt;
make sure what is your field name is it date or Date ...because field names are case sensitive&lt;BR /&gt;
so if it is Date then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
 | eval Date=strptime(Date,"%m/%d/%Y")
 | sort Date
 | eval Date=strftime(Date,"%m/%d/%Y")
 | table Date count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 13 Feb 2018 11:59:55 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-02-13T11:59:55Z</dc:date>
    <item>
      <title>How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374358#M24471</link>
      <description>&lt;P&gt;Hi All,  In trend dashboard we could see that  the dates on the chart are not in order, it  starts at 12/31/2017, then 8/22/2017 is in the middle and skips right to 2/12/2018 and ends at 1/1/2018. &lt;/P&gt;

&lt;P&gt;Exact Requirement : 8/22/17 should be the start date and the current date should be the end date. &lt;/P&gt;

&lt;P&gt;Query Details:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | table date count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;TREND-SCANNED-PAST-30-DAYS.csv detail:&lt;BR /&gt;
    Date                   count &lt;BR /&gt;
    01/01/2018         1001&lt;BR /&gt;
    01/01/2018         1002&lt;BR /&gt;
    12/12/2017        1003&lt;BR /&gt;
    01/12/2017        1004&lt;BR /&gt;
    01/11/2017       1005&lt;BR /&gt;
    02/10/2017       1006&lt;BR /&gt;
    03/09/2017       1007&lt;BR /&gt;
    04/09/2017       1008&lt;BR /&gt;
    22/08/2017       1009&lt;/P&gt;

&lt;P&gt;Kindly guide how to display the date in a correct order in the dashboard. &lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 09:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374358#M24471</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T09:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374359#M24472</link>
      <description>&lt;P&gt;Hi Hemnaath,&lt;BR /&gt;
dates are ordered as strings, to correctly order you need to transform them in numbers and sort:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
| eval date=strptime(date,"%m/%d/%Y")
| sort date
| eval date=strftime(date,"%m/%d/%Y")
| table date count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374359#M24472</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-13T10:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374360#M24473</link>
      <description>&lt;P&gt;Hi Giuseppe, hey I tried the above the string but it did not fetch any output, the date column was empty.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup TREND-SCANNED-PAST-30-DAYS.csv | eval date=strptime(date,"%m/%d/%Y") | sort date | eval date = strftime (date,"%m/%d/%Y") | table date count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the output the date filed is empty.&lt;/P&gt;

&lt;P&gt;When tested by breaking the query like below date filed is not displaying any output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | eval date=strptime(date,"%m/%d/%Y") | table date.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Whereas when same query with out using the eval statement, I could get the output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | table date count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Kindly guide me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:58:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374360#M24473</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T10:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374361#M24474</link>
      <description>&lt;P&gt;Try this run anywhere search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval date="22/08/2017 01/01/2018 12/12/2017 01/11/2017 01/02/2018" 
| makemv date 
| mvexpand date 
| table date 
| eval date=strptime(date,"%d/%m/%Y") 
| sort- date 
| eval date=strftime(date,"%d/%m/%Y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In your environment, you can try something like &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
| table date count 
| eval date=strptime(date,"%d/%m/%Y") 
| sort- date 
| eval date=strftime(date,"%d/%m/%Y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 10:59:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374361#M24474</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-13T10:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374362#M24475</link>
      <description>&lt;P&gt;Hi Mayurr,  I had executed the above query but it did not work, the date field is showing empty. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv  | eval date=strptime(date,"%d/%m/%Y") 
 | sort- date  | eval date=strftime(date,"%d/%m/%Y") | table date count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Date - Empty &lt;/P&gt;

&lt;P&gt;The below are the date and count value present in the  TREND-SCANNED-PAST-30-DAYS.csv&lt;/P&gt;

&lt;P&gt;date           count&lt;BR /&gt;
1/1/2018    10717&lt;BR /&gt;
1/2/2018    10718&lt;BR /&gt;
1/3/2018    10928&lt;BR /&gt;
1/4/2018    11011&lt;BR /&gt;
8/22/2017   3321&lt;BR /&gt;
8/23/2017   3375&lt;BR /&gt;
8/24/2017   3473&lt;BR /&gt;
8/25/2017   3683&lt;BR /&gt;
8/26/2017   3486&lt;BR /&gt;
8/27/2017   3777&lt;BR /&gt;
9/14/2017   10963&lt;BR /&gt;
9/15/2017   11252&lt;BR /&gt;
9/16/2017   11458&lt;/P&gt;

&lt;P&gt;Kindly guide me on this &lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:09:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374362#M24475</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T11:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374363#M24476</link>
      <description>&lt;P&gt;try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
 | table date count 
 | eval date=strptime(date,"%m/%d/%Y") 
 | sort- date 
 | eval date=strftime(date,"%m/%d/%Y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As your date is in &lt;CODE&gt;%m/%d/%Y&lt;/CODE&gt; format . &lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:12:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374363#M24476</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-13T11:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374364#M24477</link>
      <description>&lt;P&gt;hey it did not work , date field is set to be empty.  Whereas when same query with out using the eval statement, I could get the output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | table date count 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure what is causing the problem.  Could you please help me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:18:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374364#M24477</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T11:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374365#M24478</link>
      <description>&lt;P&gt;Hi Hemnaath,&lt;BR /&gt;
please, check if in your lookup there are spaces, if yes use trim command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
 | eval date=strptime(trim(date),"%m/%d/%Y")
 | sort date
 | eval date=strftime(date,"%m/%d/%Y")
 | table date count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374365#M24478</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-13T11:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374366#M24479</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
  | table date count 
  | eval date=strptime(date,"%m/%d/%Y") 
  | convert num(date) as date
  | sort- limit=0 date 
  | eval date=strftime(date,"%m/%d/%Y")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should work, as I have tried on my local system, Also if it does not work then try running this query at every pipe and see where it is failing to give output.&lt;BR /&gt;
Lets suppose run&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
      | table date count 
      | eval date=strptime(date,"%m/%d/%Y") 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and see if you are getting date field in epoch time...and then continue further.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:26:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374366#M24479</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2018-02-13T11:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374367#M24480</link>
      <description>&lt;P&gt;Hi mayurr,  the above query did not work, so I had tested query to find out where it is failing based on that I could query is failing the moment we enter the eval statement.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | table date count  - Working fine 

| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | table date count  | eval date=strptime(date,"%m/%d/%Y") | table date - Not working 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:42:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374367#M24480</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T11:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374368#M24481</link>
      <description>&lt;P&gt;Hi Cusello, I tried above query but no luck date field show empty result, moment we use the eval statement.  &lt;/P&gt;

&lt;P&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv | eval date=strptime(trim(date),"%m/%d/%Y") | table date count --&amp;gt; Date column is left empty and could see only data on count column.&lt;/P&gt;

&lt;P&gt;Not sure where we are having an issue. Kindly guide me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:48:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374368#M24481</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T11:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374369#M24482</link>
      <description>&lt;P&gt;Hi Hemnaath,&lt;BR /&gt;
what's the format of your date field, I see one time 22/08/2017 and one time 08/22/2017?&lt;BR /&gt;
is it %m/%d/%Y or %d/%m/%Y?&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374369#M24482</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-13T11:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374370#M24483</link>
      <description>&lt;P&gt;Hi @Hemnaath,&lt;BR /&gt;
make sure what is your field name is it date or Date ...because field names are case sensitive&lt;BR /&gt;
so if it is Date then try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
 | eval Date=strptime(Date,"%m/%d/%Y")
 | sort Date
 | eval Date=strftime(Date,"%m/%d/%Y")
 | table Date count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 11:59:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374370#M24483</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-13T11:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374371#M24484</link>
      <description>&lt;P&gt;Hi Cusello,  This is the exact data available in the spread sheet. &lt;/P&gt;

&lt;P&gt;%d/%m/%Y&lt;BR /&gt;&lt;BR /&gt;
date    count&lt;BR /&gt;
1/1/2018    10717&lt;BR /&gt;
1/2/2018    10718&lt;BR /&gt;
1/3/2018    10928&lt;BR /&gt;
1/4/2018    11011&lt;BR /&gt;
1/10/2018   11741&lt;BR /&gt;
1/11/2018   11343&lt;BR /&gt;
8/22/2017   3321&lt;BR /&gt;
8/23/2017   3375&lt;BR /&gt;
8/24/2017   3473&lt;BR /&gt;
8/25/2017   3683&lt;BR /&gt;
8/26/2017   3486&lt;BR /&gt;
8/27/2017   3777&lt;BR /&gt;
8/28/2017   4023&lt;BR /&gt;
8/29/2017   4295&lt;BR /&gt;
8/30/2017   4534&lt;BR /&gt;
8/31/2017   4709&lt;BR /&gt;
9/1/2017    4842&lt;BR /&gt;
9/2/2017    4905&lt;BR /&gt;
9/3/2017    4975&lt;/P&gt;

&lt;P&gt;Even I had tried this | eval date=strptime(date,"%d/%m/%Y") but it did not work.  i am not sure whether is a problem. So please guide me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374371#M24484</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T12:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374372#M24485</link>
      <description>&lt;P&gt;Hi Hemnaath,&lt;BR /&gt;
the way to proceed is correct as you can see&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | head 1 | eval ppp="1/4/2018" | eval ppp1=strptime(ppp,"%m/%d/%Y") | eval ppp2=strftime(ppp1,"%m/%d/%Y") | table ppp ppp1 ppp2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Now we have to understand why your dates aren't recognized.&lt;BR /&gt;
Try with this search&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  | inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
  | rex field=date "(?&amp;lt;date1&amp;gt;\d+/\d+/\d+)"
  | eval date=strptime(date1,"%m/%d/%Y")
  | sort date
  | eval date=strftime(date,"%m/%d/%Y")
  | table date count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:21:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374372#M24485</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-13T12:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374373#M24486</link>
      <description>&lt;P&gt;Hi cusello, hey even the above query did not fetch any output. The query works fine until eval statement is used, the moment it sees the eval date=strptime(date1, "%m/%d/%Y") it breaks and date field is set as empty. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv   | rex field=date "(?&amp;lt;date1&amp;gt;\d+/\d+/\d+)" | table date count  --&amp;gt; Working fine

| inputlookup TREND-SCANNED-PAST-30-DAYS.csv  | rex field=date "(?&amp;lt;date1&amp;gt;\d+/\d+/\d+)" | eval date=strptime(date1, "%m/%d/%Y") | table date count --&amp;gt; date field is empty. 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not sure why its not taking the value from the date column in the spread sheet.&lt;BR /&gt;
I doubt  the splunk is reading the value as a "string"  not as a "8/22/2017"  from the date column. Kindly guide me on this.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374373#M24486</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T13:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374374#M24487</link>
      <description>&lt;P&gt;troubleshooting step by step:&lt;BR /&gt;
what do you find with?&lt;BR /&gt;
    | inputlookup TREND-SCANNED-PAST-30-DAYS.csv &lt;BR /&gt;
       | rex field=date "(?&lt;DATE1&gt;\d+/\d+/\d+)"&lt;BR /&gt;
       | eval date2=strptime(date1,"%m/%d/%Y")&lt;BR /&gt;
       | sort date2&lt;BR /&gt;
       | eval date3=strftime(date2,"%m/%d/%Y")&lt;BR /&gt;
       | table date date1 date2 date3 count&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/DATE1&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:15:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374374#M24487</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-13T14:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374375#M24488</link>
      <description>&lt;P&gt;Hi Cusello,   after executing the below query , I am getting data in date, date1 but in date2 and date3 are empty. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv |  rex field=date "(?&amp;lt;date1&amp;gt;\d+/\d+/\d+)" | eval date2=strptime(date1,"%m/%d/%Y") | sort date2 | eval date3=strftime(date2,"%m/%d/%Y") | table date date1 date2 date3 count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:50:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374375#M24488</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T14:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374376#M24489</link>
      <description>&lt;P&gt;troubleshooting step by step:&lt;BR /&gt;
what do you find with?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup TREND-SCANNED-PAST-30-DAYS.csv 
|  rex field=date "(?&amp;lt;date1&amp;gt;\d+/\d+/\d+)" 
| eval date2=strptime(date1,"%m/%d/%Y") 
| rex field=date2 "(?&amp;lt;date3&amp;gt;[^\.]+)"
| sort date3 
| eval date4=strftime(date3,"%m/%d/%Y") 
| table date date1 date2 date3 date4 count
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374376#M24489</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-02-13T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a chart with correct date order from the lookup table in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374377#M24490</link>
      <description>&lt;P&gt;Hi cusello, no luck even this query did not work as expected , the field date2 date3 and date4 was empty.  It is not working when we use the eval statement, not sure where is the problem.  &lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:25:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-a-chart-with-correct-date-order-from-the-lookup/m-p/374377#M24490</guid>
      <dc:creator>Hemnaath</dc:creator>
      <dc:date>2018-02-13T15:25:23Z</dc:date>
    </item>
  </channel>
</rss>

