<?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: instr in Splunk ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691824#M235526</link>
    <description>&lt;P&gt;Would you look at &lt;STRONG&gt;Payload &lt;/STRONG&gt;parameter. Result has many strings with spaces.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jun 2024 08:58:33 GMT</pubDate>
    <dc:creator>kp_pl</dc:creator>
    <dc:date>2024-06-27T08:58:33Z</dc:date>
    <item>
      <title>instr in Splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691817#M235521</link>
      <description>&lt;P&gt;Below is one of my fields. Quite complex,&amp;nbsp; I know It could be divided to more atomic values .. but it is not &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;[AuditingPipelinePair, AuditingPipelinePair_response, AuditResponse, RESPONSE] [[&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Tag = AUDIT-SUCCESS&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Subject = "TAR_ID":"72503", "YEAR":"2106", "EQ_TY":"STD"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;BXB ServiceTus TransactionId = sb-W10nXQte_ORf6PjJ4wQ#000000004&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Message ID = afa9613.62eeaf42.N6b.1405404bdw7.N7e14&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Service Ref = KlmSpsDictanaryS1/proxy/KlmSpsDictanary&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Operation = getShareEquip&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Protocol = KTTP&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Client Address = 11.232.189.10&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;TransportDevel User = &amp;lt;anonymous&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;MessageDevel User = dkd&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Message Pode = 0&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Payload = Dipis sb-W10wXDte_ORf6PjJde34wQ0004&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;]]&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;Anyway, some of (single Strings) values splunk separated automatically like &lt;EM&gt;Protocol&lt;/EM&gt; or &lt;EM&gt;Operation.&lt;/EM&gt; But how to extract (or even eval in query) parameter with space like&amp;nbsp; "&lt;EM&gt;MessageDevel User"&amp;nbsp;&lt;/EM&gt; or&lt;EM&gt; "ClientAddress" ?&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 07:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691817#M235521</guid>
      <dc:creator>kp_pl</dc:creator>
      <dc:date>2024-06-27T07:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: instr in Splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691818#M235522</link>
      <description>&lt;P&gt;You could use rex, something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "MessageDevel User = (?&amp;lt;MessageDevelUser&amp;gt;\S+)"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 27 Jun 2024 07:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691818#M235522</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-06-27T07:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: instr in Splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691819#M235523</link>
      <description>&lt;P&gt;Not quite sure what you're asking but, there are several things you can do there:&lt;/P&gt;&lt;P&gt;If fields like "&lt;EM&gt;Client Address"&lt;/EM&gt; are not extracted, you can do a rex command and then use the extracted fields in evals etc:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "Client Address = (?&amp;lt;address&amp;gt;\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})"
| eval address = ...&lt;/LI-CODE&gt;&lt;P&gt;If they are already extracted, but the field as a space you can do either:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rename "Client Address" as ClientAddress
|eval ClientAddress = ...
or
| eval "Client Address" = ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 07:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691819#M235523</guid>
      <dc:creator>glc_slash_it</dc:creator>
      <dc:date>2024-06-27T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: instr in Splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691822#M235524</link>
      <description>&lt;P&gt;I feel it could be a good solution but how to use it ?&amp;nbsp; Should I extract new field with this regex ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:52:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691822#M235524</guid>
      <dc:creator>kp_pl</dc:creator>
      <dc:date>2024-06-27T08:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: instr in Splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691823#M235525</link>
      <description>&lt;P&gt;ok, got it !&amp;nbsp; Works perfect &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691823#M235525</guid>
      <dc:creator>kp_pl</dc:creator>
      <dc:date>2024-06-27T08:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: instr in Splunk ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691824#M235526</link>
      <description>&lt;P&gt;Would you look at &lt;STRONG&gt;Payload &lt;/STRONG&gt;parameter. Result has many strings with spaces.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 08:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/instr-in-Splunk/m-p/691824#M235526</guid>
      <dc:creator>kp_pl</dc:creator>
      <dc:date>2024-06-27T08:58:33Z</dc:date>
    </item>
  </channel>
</rss>

