<?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: Rex help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692836#M235809</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269806"&gt;@smineo&lt;/a&gt;&amp;nbsp;.. Rich's rex working perfectly..&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults |eval log="/opt/out/instance/log/audit.log 2023-06-04 21:32:59,422| tid:c-NMqD-hKsPm_AEzEJQyGx4O1kY| SSO| 8e4567c0-9f3a-25a1-a22d-e6b3744559a52| 123.45.678.123 | | this-value-here| SAML20| node1-1.nodeynode.things.svc.cluster.local| IdP| success| yadayadaAdapter| | 285" 
| rex field=log "\| \|(?&amp;lt;value&amp;gt;[^\|]+)" |table log value&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rex10thjuly.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31664i28B9970E4ADB089C/image-size/large?v=v2&amp;amp;px=999" role="button" title="rex10thjuly.jpg" alt="rex10thjuly.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jul 2024 00:57:30 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2024-07-10T00:57:30Z</dc:date>
    <item>
      <title>Rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692832#M235807</link>
      <description>&lt;P&gt;Hi, I have a search result with the field message.log, and the field contains this example pattern&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/opt/out/instance/log/audit.log 2023-06-04 21:32:59,422| tid:c-NMqD-hKsPm_AEzEJQyGx4O1kY| SSO| 8e4567c0-9f3a-25a1-a22d-e6b3744559a52| 123.45.678.123 | | this-value-here| SAML20| node1-1.nodeynode.things.svc.cluster.local| IdP| success| yadayadaAdapter| | 285&lt;/P&gt;&lt;P&gt;I'd like to rex "this-value-here" which is always preceded by the pattern pipe-space-pipe-space and always followed by pipe-space-SAML20.&lt;/P&gt;&lt;P&gt;Having trouble with the rex expression, appreciate the assistance.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 23:42:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692832#M235807</guid>
      <dc:creator>smineo</dc:creator>
      <dc:date>2024-07-09T23:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692834#M235808</link>
      <description>&lt;P&gt;I quick test in regex101.com produced this regular expression.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;\| \|(?&amp;lt;value&amp;gt;[^\|]+)\| SAML20&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jul 2024 00:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692834#M235808</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-10T00:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: Rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692836#M235809</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/269806"&gt;@smineo&lt;/a&gt;&amp;nbsp;.. Rich's rex working perfectly..&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults |eval log="/opt/out/instance/log/audit.log 2023-06-04 21:32:59,422| tid:c-NMqD-hKsPm_AEzEJQyGx4O1kY| SSO| 8e4567c0-9f3a-25a1-a22d-e6b3744559a52| 123.45.678.123 | | this-value-here| SAML20| node1-1.nodeynode.things.svc.cluster.local| IdP| success| yadayadaAdapter| | 285" 
| rex field=log "\| \|(?&amp;lt;value&amp;gt;[^\|]+)" |table log value&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rex10thjuly.jpg" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/31664i28B9970E4ADB089C/image-size/large?v=v2&amp;amp;px=999" role="button" title="rex10thjuly.jpg" alt="rex10thjuly.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 00:57:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692836#M235809</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-07-10T00:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692838#M235810</link>
      <description>&lt;P&gt;Great, thanks. Could you tell me what you did there to get that?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 02:32:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692838#M235810</guid>
      <dc:creator>smineo</dc:creator>
      <dc:date>2024-07-10T02:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692876#M235821</link>
      <description>&lt;P&gt;It's simple, really, since we know what precedes and follows the desired field.&amp;nbsp; Just put the known text into the regular expression and add a named capture group between them.&amp;nbsp; The pattern for the capture group can be either a non-greedy match of anything (&lt;FONT face="courier new,courier"&gt;.*?&lt;/FONT&gt;) or match anything that is not what follows the field (&lt;FONT face="courier new,courier"&gt;[^\|]+&lt;/FONT&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 12:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-help/m-p/692876#M235821</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-07-10T12:29:10Z</dc:date>
    </item>
  </channel>
</rss>

