<?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 can I search for hex encoded strings without a wildcard(*)? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303157#M91215</link>
    <description>&lt;P&gt;Hmmmm.  I just tested a general search for records on &lt;CODE&gt;index=foo&lt;/CODE&gt; containing the first 6 letters of my userid (&lt;CODE&gt;foobar&lt;/CODE&gt;) anywhere in the record, and there were none, whereas the entire userid (&lt;CODE&gt;foobarz&lt;/CODE&gt;) or the first 6 plus &lt;CODE&gt;*&lt;/CODE&gt; (&lt;CODE&gt;foobar*&lt;/CODE&gt;) both yielded results.&lt;/P&gt;

&lt;P&gt;That doesn't change your underlying issue, though, so I'll defer to wiser heads.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2017 16:40:54 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-08-28T16:40:54Z</dc:date>
    <item>
      <title>How can I search for hex encoded strings without a wildcard(*)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303154#M91212</link>
      <description>&lt;P&gt;I am trying to do a search for a number of strings that are hex encoded. For example, http would be stored as 68747470.&lt;/P&gt;

&lt;P&gt;However, I am having an issue in that nothing is pulled up. For example, if I search:&lt;/P&gt;

&lt;P&gt;wscript.exe 68747470&lt;/P&gt;

&lt;P&gt;nothing pulls up. However, if I search:&lt;/P&gt;

&lt;P&gt;wscript.exe 68747470*&lt;/P&gt;

&lt;P&gt;it works. I suspect that the hex characters are being converted to a string with the wildcard, but since I have multiple ones I want to search for I don't think that would be very efficient. &lt;/P&gt;

&lt;P&gt;Any suggestions for how to search for just the hex encoded string as stated?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303154#M91212</guid>
      <dc:creator>trevlix</dc:creator>
      <dc:date>2017-08-28T13:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for hex encoded strings without a wildcard(*)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303155#M91213</link>
      <description>&lt;P&gt;@trevlix - &lt;/P&gt;

&lt;P&gt;The way the indexes work, they are storing information about which directory pages each "word" is found on.  What they call it in rexx is each "token" --  any set of letters surrounded by white space.  In splunk,  my observation is that is seems to be any set of word characters surrounded by word boundaries, so in a regular expression it might be &lt;CODE&gt;\b\w+\b&lt;/CODE&gt;.  &lt;/P&gt;

&lt;P&gt;(Update - @somesoni2 has kindly pointed out that the term used here in splunk is "segment" and that this page &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Abouteventsegmentation"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Abouteventsegmentation&lt;/A&gt; is an entree into the subject.  The lists of major and minor breaking characters that demarcate segment boundaries are specified in &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.6.3/Admin/Segmentersconf"&gt;segmenters.conf&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;When you search for &lt;CODE&gt;http&lt;/CODE&gt; without an asterisk, then you will get only those events where &lt;CODE&gt;http&lt;/CODE&gt; is an entire token by itself... not the ones with &lt;CODE&gt;https&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Is this the effect you are experiencing?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 14:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303155#M91213</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-28T14:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for hex encoded strings without a wildcard(*)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303156#M91214</link>
      <description>&lt;P&gt;Overall, that is actually the opposite of what I experience. If I search for "http", then all strings that contain http, including https. &lt;/P&gt;

&lt;P&gt;However, my issue here is that splunk appears to be interpreting the hex string as a number that is in hex format, and not a string of characters. I'm trying to figure out how to force splunk to interpret it as a string. I have also surrounded the string with double and single quotes to no effect.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 16:21:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303156#M91214</guid>
      <dc:creator>trevlix</dc:creator>
      <dc:date>2017-08-28T16:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for hex encoded strings without a wildcard(*)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303157#M91215</link>
      <description>&lt;P&gt;Hmmmm.  I just tested a general search for records on &lt;CODE&gt;index=foo&lt;/CODE&gt; containing the first 6 letters of my userid (&lt;CODE&gt;foobar&lt;/CODE&gt;) anywhere in the record, and there were none, whereas the entire userid (&lt;CODE&gt;foobarz&lt;/CODE&gt;) or the first 6 plus &lt;CODE&gt;*&lt;/CODE&gt; (&lt;CODE&gt;foobar*&lt;/CODE&gt;) both yielded results.&lt;/P&gt;

&lt;P&gt;That doesn't change your underlying issue, though, so I'll defer to wiser heads.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 16:40:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303157#M91215</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-08-28T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for hex encoded strings without a wildcard(*)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303158#M91216</link>
      <description>&lt;P&gt;Update: I found if I use regex for this, it works. However, would still love to hear any other suggestions.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 16:45:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303158#M91216</guid>
      <dc:creator>trevlix</dc:creator>
      <dc:date>2017-08-28T16:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I search for hex encoded strings without a wildcard(*)?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303159#M91217</link>
      <description>&lt;P&gt;What does your raw events look like? (paste sample, remember to mask any sensitive information) My guess is the issue is related to segmentation. If your raw event contains say &lt;CODE&gt;&lt;A href="http://localhost.my.domain.com" target="test_blank"&gt;http://localhost.my.domain.com&lt;/A&gt;.&lt;/CODE&gt;, after &lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Abouteventsegmentation"&gt;Event Segmentation&lt;/A&gt;, Splunk creates may searchable segements like &lt;CODE&gt;http&lt;/CODE&gt;, &lt;CODE&gt;localhost&lt;/CODE&gt;,&lt;CODE&gt;my&lt;/CODE&gt;, &lt;CODE&gt;domain&lt;/CODE&gt; etc (period being segment delimiter). If your raw data contains hex equivalent of &lt;CODE&gt;&lt;A href="http://localhost.my.domain.com" target="test_blank"&gt;http://localhost.my.domain.com&lt;/A&gt;.&lt;/CODE&gt; as continuous numeric numbers, the segmentation process may be treating it as one big segment and thus you need to use regex or asterisk wildcard character.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 17:26:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-search-for-hex-encoded-strings-without-a-wildcard/m-p/303159#M91217</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-08-28T17:26:50Z</dc:date>
    </item>
  </channel>
</rss>

