<?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 How to extract token from HTTP header? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-token-from-HTTP-header/m-p/597745#M208142</link>
    <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;I have a set of data with a lot of HTTP requests, where I want to extract only the tokens highlighted below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;header=Authorization=Basic&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;MmQyXXXXXXXXNDVjOTlkNTJlM2M0ZjA1MzVjYTI4ZGZkMzJmNTBlMjk=&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-05-13 10:07:07,772 INFO  [io.undertow.request.dump] (default task-13778) 
----------------------------REQUEST---------------------------
               URI=/auth/realms/Public/protocol/openid-connect/token
 characterEncoding=null
     contentLength=29
       contentType=[application/x-www-form-urlencoded;charset=UTF-8]
            header=Accept=application/json, application/x-www-form-urlencoded
            header=Cache-Control=no-cache
            header=Pragma=no-cache
            header=User-Agent=Java/11.0.4
            header=Connection=keep-alive
            header=Authorization=Basic MmQyXXXXXNDVjOTlkNTJlM2M0ZjA1MzVjYTI4ZGZkMzJmNTBlMjk=
            header=Content-Type=application/x-www-form-urlencoded;charset=UTF-8
            header=Content-Length=29&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with the Field Extractor wizard, but with no luck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please advise, how to achieve this?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 16:14:00 GMT</pubDate>
    <dc:creator>miberecz</dc:creator>
    <dc:date>2022-05-13T16:14:00Z</dc:date>
    <item>
      <title>How to extract token from HTTP header?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-token-from-HTTP-header/m-p/597745#M208142</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;
&lt;P&gt;I have a set of data with a lot of HTTP requests, where I want to extract only the tokens highlighted below.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;header=Authorization=Basic&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;SPAN class=""&gt;MmQyXXXXXXXXNDVjOTlkNTJlM2M0ZjA1MzVjYTI4ZGZkMzJmNTBlMjk=&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;2022-05-13 10:07:07,772 INFO  [io.undertow.request.dump] (default task-13778) 
----------------------------REQUEST---------------------------
               URI=/auth/realms/Public/protocol/openid-connect/token
 characterEncoding=null
     contentLength=29
       contentType=[application/x-www-form-urlencoded;charset=UTF-8]
            header=Accept=application/json, application/x-www-form-urlencoded
            header=Cache-Control=no-cache
            header=Pragma=no-cache
            header=User-Agent=Java/11.0.4
            header=Connection=keep-alive
            header=Authorization=Basic MmQyXXXXXNDVjOTlkNTJlM2M0ZjA1MzVjYTI4ZGZkMzJmNTBlMjk=
            header=Content-Type=application/x-www-form-urlencoded;charset=UTF-8
            header=Content-Length=29&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried with the Field Extractor wizard, but with no luck.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please advise, how to achieve this?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 16:14:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-token-from-HTTP-header/m-p/597745#M208142</guid>
      <dc:creator>miberecz</dc:creator>
      <dc:date>2022-05-13T16:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Extract token from HTTP header</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-token-from-HTTP-header/m-p/597750#M208146</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "header=Authorization=Basic\s(?&amp;lt;auth&amp;gt;\S*)"&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 13 May 2022 09:06:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-token-from-HTTP-header/m-p/597750#M208146</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-13T09:06:57Z</dc:date>
    </item>
  </channel>
</rss>

