<?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: Between dates condition in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629513#M51632</link>
    <description>&lt;P&gt;Thank you so much!! Its working fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Feb 2023 14:33:57 GMT</pubDate>
    <dc:creator>Neel88</dc:creator>
    <dc:date>2023-02-03T14:33:57Z</dc:date>
    <item>
      <title>Between dates condition showing error?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629480#M51626</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am passing the dates as token but it shows the error in both the condition.&lt;/P&gt;
&lt;P&gt;Cond1: | where (Date&amp;gt;="$date_start$" AND Date&amp;lt;="$date_end$")&lt;/P&gt;
&lt;P&gt;Cond2: | where (Date&amp;gt;="2022-06-01" AND Date&amp;lt;="2022-06-02")&lt;/P&gt;
&lt;P&gt;Please help&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629480#M51626</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-03T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Between dates condition</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629483#M51627</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253302"&gt;@Neel88&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;to compare dates, you have to transform them in epochtime using the strptime function, you cannot compare dates in text format.&lt;/P&gt;&lt;P&gt;The only apparent exception is _time, but it's only apparence because it's already in epochtime.&lt;/P&gt;&lt;P&gt;something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval date_start=strptime($date_start$,"%Y-%m-%d"), date_end=strptime($date_end$,"%Y-%m-%d"), Date=strptime(date,"%Y-%m-%d")
| where Date&amp;gt;=date_start AND Date&amp;lt;=date_end
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 11:48:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629483#M51627</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-03T11:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Between dates condition</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629486#M51628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried and getting this error.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Neel88_1-1675426768151.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23706iE8F92312155CBD2A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Neel88_1-1675426768151.png" alt="Neel88_1-1675426768151.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 12:19:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629486#M51628</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-03T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Between dates condition</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629497#M51629</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253302"&gt;@Neel88&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;this is a different problem:&lt;/P&gt;&lt;P&gt;in the simple xml dashboards you cannout use "&amp;lt;" or "&amp;gt;" but you have to use: "&amp;amp;lt;" and "&amp;amp;gt;"&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 13:05:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629497#M51629</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-03T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Between dates condition</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629503#M51630</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;| where (Date = "&amp;amp;gt;","$date_start$") AND (Date = "&amp;amp;lt;","$date_end$")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am very new with this tool. I am not getting result.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:02:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629503#M51630</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-03T14:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Between dates condition</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629504#M51631</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253302"&gt;@Neel88&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I used quotes to delimit the strings, use them without quotes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| eval date_start=strptime($date_start$,"%Y-%m-%d"), date_end=strptime($date_end$,"%Y-%m-%d"), Date=strptime(date,"%Y-%m-%d")
| where Date&amp;amp;gt;=date_start AND Date&amp;amp;lt;=date_end
| ...&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:06:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629504#M51631</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-02-03T14:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Between dates condition</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629513#M51632</link>
      <description>&lt;P&gt;Thank you so much!! Its working fine &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 14:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Between-dates-condition-showing-error/m-p/629513#M51632</guid>
      <dc:creator>Neel88</dc:creator>
      <dc:date>2023-02-03T14:33:57Z</dc:date>
    </item>
  </channel>
</rss>

