<?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: How to view raw events in Stream?? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474339#M81452</link>
    <description>&lt;P&gt;Please provide example data, what you want the data to look like, and the regex you've constructed so far. Be sure to censor any sensitive data.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2019 21:41:13 GMT</pubDate>
    <dc:creator>jacobpevans</dc:creator>
    <dc:date>2019-09-09T21:41:13Z</dc:date>
    <item>
      <title>How to view raw events in Stream??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474338#M81451</link>
      <description>&lt;P&gt;Getting a Splunk Stream feed from a Gigamon tap for HTTP.&lt;/P&gt;

&lt;P&gt;I can see all the default fields to pull from the HTTP stream, including the one I care about "src_headers". However, I can't log the full src_headers because it potentially contains authentication tokens and other stuff I don't want to log. I have been able to extract a couple fields successfully by guessing at the regex, but been thrashing on the rest.&lt;/P&gt;

&lt;P&gt;Is there some way to view the data that is coming to Stream without being forced to log all of it?? Something like a preview??&lt;/P&gt;

&lt;P&gt;Would be nice to see a sample event before logging everything. Thanks.&lt;/P&gt;

&lt;P&gt;-Tyler&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:05:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474338#M81451</guid>
      <dc:creator>tjago11</dc:creator>
      <dc:date>2020-09-30T02:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to view raw events in Stream??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474339#M81452</link>
      <description>&lt;P&gt;Please provide example data, what you want the data to look like, and the regex you've constructed so far. Be sure to censor any sensitive data.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2019 21:41:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474339#M81452</guid>
      <dc:creator>jacobpevans</dc:creator>
      <dc:date>2019-09-09T21:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to view raw events in Stream??</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474340#M81453</link>
      <description>&lt;P&gt;That's the problem, I don't have sample data. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;My data is getting fed from a Gigamon tap at the LTM level. I don't have visibility into the raw tap data and I don't want to log it because it has authentication tokens and other scary stuff.&lt;/P&gt;

&lt;P&gt;Working with the OTB HTTP Stream Protocol:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/StreamApp/7.1.3/DeployStreamApp/FileTransfer#HTTP" target="_blank"&gt;https://docs.splunk.com/Documentation/StreamApp/7.1.3/DeployStreamApp/FileTransfer#HTTP&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;The field that I want to build an extraction for is src_headers:&lt;BR /&gt;
src_headers All HTTP headers sent from client to server http.cs-headers&lt;/P&gt;

&lt;P&gt;I was able to extract a known header element that is added by an application team using this:&lt;BR /&gt;
    x-parentspantoken[\s:=]+(.{36})&lt;/P&gt;

&lt;P&gt;The one I'm struggling with is the x-forwarded-for that is added by our F5 devices. I have this regex:&lt;BR /&gt;
    x-forwarded-for([:\s]+[\d.:\s,]+)&lt;/P&gt;

&lt;P&gt;Which is just a guess because I can't see the actual raw header to know if that is right. Possibly a casing issue?? Tried adding (?i) to the front and it gave me an error:&lt;BR /&gt;
    Invalid regex Expression&lt;/P&gt;

&lt;P&gt;Poop.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-view-raw-events-in-Stream/m-p/474340#M81453</guid>
      <dc:creator>tjago11</dc:creator>
      <dc:date>2020-09-30T02:07:18Z</dc:date>
    </item>
  </channel>
</rss>

