<?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: Are hidden characters breaking my joins? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635614#M220828</link>
    <description>&lt;P&gt;If I remember correctly there were some issues with leading/trailing spaces when using the interesting fields &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt; 's idea is a way to verify it.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 05:36:06 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2023-03-23T05:36:06Z</dc:date>
    <item>
      <title>Are hidden characters breaking my joins?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635537#M220798</link>
      <description>&lt;P&gt;I am trying to build an Alert for login failures in AWS CloudTrail. In general I have it working -- but my joins are missing some of the desired events.&amp;nbsp; Specifically, I am building an 'index' value consisting of the username+IP, e.g.&lt;/P&gt;&lt;PRE&gt;| eval user_IP = username + src_ip&lt;/PRE&gt;&lt;P&gt;but I now see that some seemingly-identical values are being evaluated as separate. For instance, when you click on the Selected Values view (left-side in the results) there will be 2 separate entries which -- at least on-screen -- appear to be identical.&lt;/P&gt;&lt;P&gt;WHAT THE POPUP SHOWS&lt;/P&gt;&lt;PRE&gt;user_IP&lt;BR /&gt;2 Values, 100% of events&lt;BR /&gt;&lt;BR /&gt;Values&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Count&lt;BR /&gt;firstuser172.31.1.1&amp;nbsp;&amp;nbsp; 2&lt;BR /&gt;firstuser172.31.1.1&amp;nbsp;&amp;nbsp; 1&lt;/PRE&gt;&lt;P&gt;I suspect there is a hidden character in the second Value. Or, maybe a trailing space (though there is none when I try adding each to the search).&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;How can I modify my 'eval' to generate values without hidden characters?&lt;/P&gt;&lt;P&gt;(I already tried adding a lower() function but without success)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 21:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635537#M220798</guid>
      <dc:creator>ttovarzoll</dc:creator>
      <dc:date>2023-03-22T21:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Are hidden characters breaking my joins?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635607#M220820</link>
      <description>&lt;P&gt;One way to check is to bracket the string.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval user_IP = "&amp;gt;" . username . src_ip . "&amp;lt;"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 05:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635607#M220820</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-03-23T05:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Are hidden characters breaking my joins?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635614#M220828</link>
      <description>&lt;P&gt;If I remember correctly there were some issues with leading/trailing spaces when using the interesting fields &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt; 's idea is a way to verify it.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 05:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635614#M220828</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-03-23T05:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Are hidden characters breaking my joins?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635747#M220880</link>
      <description>&lt;P&gt;Aha! yes, that's a good trick. At first I didn't understand how that would fix the problem but then I realized that it was the perfect troubleshooting step -- and it demonstrated that &lt;STRONG&gt;there was a trailing space&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;So, I have now modified my eval statement and confirmed that I am now receiving the missing events&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval user_IP = username . trim(src_ip)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I also had to add matching trim() statements to several other references to 'username' throughout the SPL query.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 16:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Are-hidden-characters-breaking-my-joins/m-p/635747#M220880</guid>
      <dc:creator>ttovarzoll</dc:creator>
      <dc:date>2023-03-23T16:13:47Z</dc:date>
    </item>
  </channel>
</rss>

