<?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: Extracting a field after a certain text string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/560213#M159205</link>
    <description>&lt;P&gt;Excellent, thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jul 2021 14:02:07 GMT</pubDate>
    <dc:creator>FC50</dc:creator>
    <dc:date>2021-07-20T14:02:07Z</dc:date>
    <item>
      <title>Extracting a field after a certain text string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/559938#M159112</link>
      <description>&lt;P&gt;Hello, I'm trying to extract some SSID info into a field in Splunk. This info comes after a certain text string in some Cisco WLC logs. Sample logs:&lt;/P&gt;&lt;P&gt;Jul 18 15:00:27 10.171.12.44 DA-WLC-03: *Dot1x_NW_MsgTask_0: Jul 18 15:00:25.919: %APF-3-AUTHENTICATION_TRAP: [SA]apf_80211.c:20019 Client Authenticated: MACAddress:fa:f0:6c:56:34:bf Base Radio MAC:a0:93:51:22:38:b0 Slot:0 User Name:&lt;A href="mailto:dave2345@ox.ac.uk" target="_blank" rel="noopener"&gt;dave2345@ox.ac.uk&lt;/A&gt; Ip Address:10.156.4.11 SSID:&lt;STRONG&gt;eduwifi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Jul 18 15:20:3510.171.12.44 DA-WLC-03: *Dot1x_NW_MsgTask_0: Jul 18 15:20:33.510: %APF-3-AUTHENTICATION_TRAP: [SA]apf_80211.c:20019 Client Authenticated: MACAddress:b8:27:56:34:cc:d0 Base Radio MAC:a0:93:51:22:38:b0 Slot:0 User Name: unknown Ip Address:10.156.4.11 SSID:&lt;STRONG&gt;W-Guest&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;These logs are often different lengths but the common feature I want to initially capture as a field is what comes after the text SSID:&lt;/P&gt;&lt;P&gt;I can use this basic regex string in testing on regex101.com and it seems to do the trick:&lt;BR /&gt;&lt;SPAN&gt;(?:&amp;lt;=SSID:).*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but whenever I try toeither extract the field or use the rex command in splunk it does not work. Please could someone tell me if this is the correct regex expression and what formatting would i need to use in splunk to extract the field ?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wifiThis seems to be a common request but I can't get it to work&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 14:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/559938#M159112</guid>
      <dc:creator>FC50</dc:creator>
      <dc:date>2021-07-18T14:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field after a certain text string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/559939#M159113</link>
      <description>&lt;P&gt;Correction the working regex expression should read:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(?&amp;lt;=SSID:).*&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 15:00:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/559939#M159113</guid>
      <dc:creator>FC50</dc:creator>
      <dc:date>2021-07-18T15:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field after a certain text string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/559940#M159114</link>
      <description>&lt;P&gt;You don't need to use lookbehind in your instance particularly, just include the anchor in the expression&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "SSID:(?&amp;lt;ssid&amp;gt;.*)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 15:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/559940#M159114</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-07-18T15:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting a field after a certain text string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/560213#M159205</link>
      <description>&lt;P&gt;Excellent, thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 14:02:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-a-field-after-a-certain-text-string/m-p/560213#M159205</guid>
      <dc:creator>FC50</dc:creator>
      <dc:date>2021-07-20T14:02:07Z</dc:date>
    </item>
  </channel>
</rss>

