<?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: Extract the User-Agent from HTTP request in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561083#M159478</link>
    <description>&lt;P&gt;Your regex was very close.&amp;nbsp; This worked for me using the one example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;User-Agent: (?&amp;lt;UserAgent&amp;gt;[^\\]*)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 27 Jul 2021 19:32:33 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-07-27T19:32:33Z</dc:date>
    <item>
      <title>Extract the User-Agent from HTTP request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561061#M159473</link>
      <description>&lt;P&gt;Below the excerpt from my HTTP request and I'm trying to get the User-Agent value from it and so far not successful. Will appreciate any help.&lt;/P&gt;&lt;P&gt;This Splunk editor is removing the carriage return and line feed characters so below is the regex101 link.&lt;A href="https://regex101.com/r/rdu8yE/1" target="_blank"&gt;https://regex101.com/r/rdu8yE/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also attached is the screenshot of the HTTP request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 17:09:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561061#M159473</guid>
      <dc:creator>ashishmgupta</dc:creator>
      <dc:date>2021-07-27T17:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the User-Agent from HTTP request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561083#M159478</link>
      <description>&lt;P&gt;Your regex was very close.&amp;nbsp; This worked for me using the one example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;User-Agent: (?&amp;lt;UserAgent&amp;gt;[^\\]*)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 27 Jul 2021 19:32:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561083#M159478</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-27T19:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the User-Agent from HTTP request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561084#M159479</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Error in 'rex' command: Encountered the following error while compiling the regex 'User-Agent: (?&amp;lt;UserAgent&amp;gt;[^\]*)': Regex: missing terminating ] for character class.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 19:39:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561084#M159479</guid>
      <dc:creator>ashishmgupta</dc:creator>
      <dc:date>2021-07-27T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the User-Agent from HTTP request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561085#M159480</link>
      <description>&lt;P&gt;To use backslashes in a regex in SPL you have to escape them.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;User-Agent: (?&amp;lt;UserAgent&amp;gt;[^\\\\\\]*)&lt;/LI-CODE&gt;&lt;P&gt;Yes, that's 6 backslashes to get two.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 19:53:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561085#M159480</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-07-27T19:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract the User-Agent from HTTP request</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561087#M159481</link>
      <description>&lt;P&gt;looks like 4 backslashes to get two? Below worked. Thank you for your help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;User-Agent: (?&amp;lt;UserAgent&amp;gt;[^\\\\]*)&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 20:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extract-the-User-Agent-from-HTTP-request/m-p/561087#M159481</guid>
      <dc:creator>ashishmgupta</dc:creator>
      <dc:date>2021-07-27T20:13:08Z</dc:date>
    </item>
  </channel>
</rss>

