<?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 How to create a dashboard on a custom field and add a timing filter on the custom field? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274661#M17354</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a problem with a dashboard. I have to create a timechart dashboard on a custom field (that is not index time) and also add a timing filter on this custom field.&lt;/P&gt;

&lt;P&gt;I have created the dashboard in the following way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=strftime(myfield,....) | timechart ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I add input time and it filters on original _time and not new time.&lt;/P&gt;

&lt;P&gt;Please let me know.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aniello&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 14:20:31 GMT</pubDate>
    <dc:creator>aniello_cerrato</dc:creator>
    <dc:date>2016-10-27T14:20:31Z</dc:date>
    <item>
      <title>How to create a dashboard on a custom field and add a timing filter on the custom field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274661#M17354</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a problem with a dashboard. I have to create a timechart dashboard on a custom field (that is not index time) and also add a timing filter on this custom field.&lt;/P&gt;

&lt;P&gt;I have created the dashboard in the following way:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval _time=strftime(myfield,....) | timechart ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I add input time and it filters on original _time and not new time.&lt;/P&gt;

&lt;P&gt;Please let me know.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Aniello&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:20:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274661#M17354</guid>
      <dc:creator>aniello_cerrato</dc:creator>
      <dc:date>2016-10-27T14:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard on a custom field and add a timing filter on the custom field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274662#M17355</link>
      <description>&lt;P&gt;That's the limitation when you're not timecharting with original/splunk-extracted _time. The time range picker is applied on base search (before first pipe) and thus only works on _time available at that time. Since you're calculating your _time later (based on custom field), it won't honor the timerange picker. &lt;/P&gt;

&lt;P&gt;Your option would be to explicitly set the time range picket to "All Time" OR something suitable length which will include all the data for your selected time range, and add time range filter using subsearch after you calculate your new _time. Something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo sourcetype=bar .. earliest=0 latest=now | eval _time=strptime(customfield,"...timeformat..") | where _time&amp;gt;=[| gentimes start=-1 | addinfo | eval search=info_min_time | table search] AND _time&amp;lt;[| gentimes start=-1 | addinfo | eval search=info_max_time | table search] | ..rest of the search
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274662#M17355</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-27T15:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard on a custom field and add a timing filter on the custom field?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274663#M17356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;in your search how can I add the filter time?Always using add input?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 15:54:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard-on-a-custom-field-and-add-a-timing/m-p/274663#M17356</guid>
      <dc:creator>aniello_cerrato</dc:creator>
      <dc:date>2016-10-27T15:54:42Z</dc:date>
    </item>
  </channel>
</rss>

