<?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 Any other way to compare between the same variable? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-other-way-to-compare-between-the-same-variable/m-p/645338#M52680</link>
    <description>&lt;P&gt;Hey Guys,&lt;/P&gt;
&lt;P&gt;I have a problem: I have two time fields because one of the type source is json file and there is another script running, but now I have to mix both, so I created this eval:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval _time=if(match(source, "[(\S).json]\w+"), strptime(time, "%Y/%m/%d %H:%M:%S.%f"), _time)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I search I just receive the .json file search, so&amp;nbsp;&lt;SPAN&gt;Is there any other way to "join"?, or at least the "if" statement ignore and just modify the json source?&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jun 2023 12:23:05 GMT</pubDate>
    <dc:creator>ViniciusMariano</dc:creator>
    <dc:date>2023-06-01T12:23:05Z</dc:date>
    <item>
      <title>Any other way to compare between the same variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-other-way-to-compare-between-the-same-variable/m-p/645338#M52680</link>
      <description>&lt;P&gt;Hey Guys,&lt;/P&gt;
&lt;P&gt;I have a problem: I have two time fields because one of the type source is json file and there is another script running, but now I have to mix both, so I created this eval:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| eval _time=if(match(source, "[(\S).json]\w+"), strptime(time, "%Y/%m/%d %H:%M:%S.%f"), _time)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but when I search I just receive the .json file search, so&amp;nbsp;&lt;SPAN&gt;Is there any other way to "join"?, or at least the "if" statement ignore and just modify the json source?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 12:23:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Any-other-way-to-compare-between-the-same-variable/m-p/645338#M52680</guid>
      <dc:creator>ViniciusMariano</dc:creator>
      <dc:date>2023-06-01T12:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Any other way to compare between the same variable?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Any-other-way-to-compare-between-the-same-variable/m-p/645350#M52681</link>
      <description>&lt;P&gt;The regex used in the &lt;FONT face="courier new,courier"&gt;match&lt;/FONT&gt; function appears to match more than is intended.&amp;nbsp; Because of the dot with the square brackets, the expression will match anything.&amp;nbsp; Try this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval _time=if(match(source, "\S\.json\w"), strptime(time, "%Y/%m/%d %H:%M:%S.%f"), _time)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 12:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Any-other-way-to-compare-between-the-same-variable/m-p/645350#M52681</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-06-01T12:53:34Z</dc:date>
    </item>
  </channel>
</rss>

