<?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: Time comparison different results in search and dashboar in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707069#M239198</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253490"&gt;@Ste&lt;/a&gt;, how are you?&lt;/P&gt;&lt;P&gt;Is &lt;STRONG&gt;&amp;amp;gt;&lt;/STRONG&gt; for &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;Your SPL is using &lt;STRONG&gt;&amp;amp;gr;&lt;/STRONG&gt; instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where my_time&amp;amp;gt;=relative_time(now(),"-1d@d") AND my_time&amp;amp;lt;=relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Dec 2024 18:27:17 GMT</pubDate>
    <dc:creator>luizlimapg</dc:creator>
    <dc:date>2024-12-17T18:27:17Z</dc:date>
    <item>
      <title>Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707035#M239190</link>
      <description>&lt;P&gt;Dear experts&lt;/P&gt;&lt;P&gt;Why is the following line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where my_time&amp;gt;=relative_time(now(),"-1d@d") AND my_time&amp;lt;=relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Accepted as a valid statement in a search window, but as soon I want to use exactly this code in a dashboard, I get the error message: "&lt;A class="" href="https://sbb.splunkcloud.com/de-DE/app/sbb_app_bm-saz/oct-smr-time-range-test/editxml?form.t_time.earliest=-7d%40h&amp;amp;form.t_time.latest=%40d#L100" target="_blank" rel="noopener"&gt;Error in line 100:&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Unencoded &amp;lt;" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The dashboard code validator somehow fails with the &lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt; comparison.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;&amp;gt;=&lt;/STRONG&gt; works, as well &lt;STRONG&gt;=&lt;/STRONG&gt; but not &lt;STRONG&gt;&amp;lt;=&lt;/STRONG&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;We're on splunkcloud.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 13:51:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707035#M239190</guid>
      <dc:creator>Ste</dc:creator>
      <dc:date>2024-12-17T13:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707037#M239191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253490"&gt;@Ste&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in dashboards, you cannot use &amp;lt;&amp;gt; and you have to replace them with &amp;amp;lt; and &amp;amp;gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where my_time&amp;amp;gr;=relative_time(now(),"-1d@d") AND my_time&amp;amp;lt;=relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 13:53:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707037#M239191</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-12-17T13:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707040#M239193</link>
      <description>&lt;P&gt;Using the html tags from your proposal would lead into the error message "&lt;A class="" href="https://sbb.splunkcloud.com/de-DE/app/sbb_app_bm-saz/oct-smr-time-range-test/editxml?form.t_time.earliest=-7d%40h&amp;amp;form.t_time.latest=%40d#L100" target="_blank" rel="noopener"&gt;Error in Line 100:&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Invalid character entity"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 14:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707040#M239193</guid>
      <dc:creator>Ste</dc:creator>
      <dc:date>2024-12-17T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707049#M239196</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253490"&gt;@Ste&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Please share the code of your dashboard with the error using the "Insert/Edit Code Cample" button.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 15:33:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707049#M239196</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2024-12-17T15:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707069#M239198</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253490"&gt;@Ste&lt;/a&gt;, how are you?&lt;/P&gt;&lt;P&gt;Is &lt;STRONG&gt;&amp;amp;gt;&lt;/STRONG&gt; for &lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;Your SPL is using &lt;STRONG&gt;&amp;amp;gr;&lt;/STRONG&gt; instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where my_time&amp;amp;gt;=relative_time(now(),"-1d@d") AND my_time&amp;amp;lt;=relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 18:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707069#M239198</guid>
      <dc:creator>luizlimapg</dc:creator>
      <dc:date>2024-12-17T18:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707084#M239204</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267805"&gt;@luizlimapg&lt;/a&gt;&amp;nbsp;is correct. &amp;nbsp;If you copy and paste your search into Simple XML code window (or Dashboard Studio code window for that matter), some special characters will be interpreted by the XML engine (or the JSON engine). &amp;nbsp;If you need to do that, use HTML entities to represent these special characters.&lt;/P&gt;&lt;P&gt;It is best to avoid this, however. &amp;nbsp;If you have a panel, copy and paste your search code into the Search popup. (Similarly in the search box under Input.)&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 22:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707084#M239204</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-12-17T22:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Time comparison different results in search and dashboar</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707488#M239304</link>
      <description>&lt;P&gt;Gentlemen you're right&lt;/P&gt;&lt;P&gt;Search code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where my_time&amp;gt;=relative_time(now(),"-1d@d") AND _time&amp;lt;=relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;updated to&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| where my_time &amp;amp;gt;=relative_time(now(),"-1d@d") AND _time &amp;amp;lt;=relative_time(now(),"@d")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will work in a dashboard.&lt;BR /&gt;&lt;BR /&gt;I started from scratch with all my trials and were not able to reproduce my issues with the html tags.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This must be a classic PIBCAK (Problem Is Between Chair and Keyboard)&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2024 11:54:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Time-comparison-different-results-in-search-and-dashboar/m-p/707488#M239304</guid>
      <dc:creator>Ste</dc:creator>
      <dc:date>2024-12-23T11:54:09Z</dc:date>
    </item>
  </channel>
</rss>

