<?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 use time modifiers in the dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243696#M15162</link>
    <description>&lt;P&gt;It Worked. Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 15:30:26 GMT</pubDate>
    <dc:creator>kiran331</dc:creator>
    <dc:date>2016-10-12T15:30:26Z</dc:date>
    <item>
      <title>How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243686#M15152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;How to change the search below to show the events occurred before 2 hrs of specific time, which is passed through token. &lt;/P&gt;

&lt;P&gt;latest="$last_time$"  if i pass  "10/5/2016:20:00:00"  then the earliest should be "10/5/2016:18:00:00"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog sourcetype="WinEventLog:Security"  (EventCode=4625 OR ((EventCode=4768 OR EventCode=4771) Keywords="Audit Failure")) user!="*$" latest=$last_time$ earliest=latest-2h|search user=*|table _time user src_nt_host host EventCode name src_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 13:41:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243686#M15152</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-10-12T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243687#M15153</link>
      <description>&lt;P&gt;Where is &lt;CODE&gt;$last_time$&lt;/CODE&gt; set? &lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:29:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243687#M15153</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-12T14:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243688#M15154</link>
      <description>&lt;P&gt;I'm using this search in Dashboard for the form input(text) . it is set for latest field&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 14:31:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243688#M15154</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-10-12T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243689#M15155</link>
      <description>&lt;P&gt;Try this for updating search's time range using a subsearch&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog sourcetype="WinEventLog:Security" (EventCode=4625 OR ((EventCode=4768 OR EventCode=4771) Keywords="Audit Failure")) user!="$" [| gentimes start=-1 | eval latest=strptime("$last_time$","%m/%d/%Y:%T") | eval earliest=relative_time(latest, "-2h") | table earliest latest | format ] |search user=* |table _time user src_nt_host host EventCode name src_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:15:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243689#M15155</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-10-12T15:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243690#M15156</link>
      <description>&lt;P&gt;HA, can't tell if we raced to the bottom or the top &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:17:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243690#M15156</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-12T15:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243691#M15157</link>
      <description>&lt;P&gt;@somesoni2 beat me by the hair of his chin in posting an answer, so I will relinquish technical karma to him in the hopes it gains me spiritual karma&lt;/P&gt;

&lt;P&gt;For posterity sake, this is what I posted (updated based on comments)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=wineventlog sourcetype="WinEventLog:Security" (EventCode=4625 OR ((EventCode=4768 OR EventCode=4771) Keywords="Audit Failure")) user!="$" [ | gentimes start=-1 | eval latest = strptime($last_time|s$, "%m/%d/%Y:%T") | eval earliest = relative_time(latest, "-2h") | table latest earliest | format "" "" "" "" "" "" | eval search = replace(search,"\"", "")] |search user=|table _time user src_nt_host host EventCode name src_ip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243691#M15157</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-12T15:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243692#M15158</link>
      <description>&lt;P&gt;Hi Somesoni2, &lt;/P&gt;

&lt;P&gt;I'm getting the error " Error in 'search' command: Unable to parse the search: 'AND' operator is missing a clause on the left hand side."&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243692#M15158</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-10-12T15:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243693#M15159</link>
      <description>&lt;P&gt;Try using &lt;CODE&gt;format "" "" "" "" "" "" "" | eval search = replace(search,"\"", "")&lt;/CODE&gt; instead of just &lt;CODE&gt;format&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243693#M15159</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-12T15:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243694#M15160</link>
      <description>&lt;P&gt;Hi rjthibod, &lt;BR /&gt;
 I got his error.&lt;BR /&gt;
Error in 'format' command: Invalid argument: ''&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243694#M15160</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-10-12T15:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243695#M15161</link>
      <description>&lt;P&gt;Sorry, one double-quote too many&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;format "" "" "" "" "" "" | eval search = replace(search,"\"", "")&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:27:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243695#M15161</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-12T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243696#M15162</link>
      <description>&lt;P&gt;It Worked. Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:30:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243696#M15162</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-10-12T15:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use time modifiers in the dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243697#M15163</link>
      <description>&lt;P&gt;Great, will update my post&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 15:35:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-use-time-modifiers-in-the-dashboard/m-p/243697#M15163</guid>
      <dc:creator>rjthibod</dc:creator>
      <dc:date>2016-10-12T15:35:49Z</dc:date>
    </item>
  </channel>
</rss>

