<?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: Data Collectors for HTTP Session Attributes in AppD Archive</title>
    <link>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719770#M839</link>
    <description>&lt;P&gt;Since I am only attemptive to retrieve the user id, I was able to use an expression on&amp;nbsp;User Principal to retrieve the user id I need.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37708i3FDC8B438C59B819/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Apr 2015 04:31:09 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2015-04-25T04:31:09Z</dc:date>
    <item>
      <title>Data Collectors for HTTP Session Attributes</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719767#M836</link>
      <description>&lt;P&gt;Is it possible to use an expression to retrieve a value from an HTTP session? I'm trying to capture the username for each HTTP request. The username is stored&amp;nbsp;in a UserProfile object stored as&amp;nbsp;a&amp;nbsp;session attribute with key of 'userProfile'.&lt;/P&gt;

&lt;P&gt;I have added a method Data Collector to retrieve the username from the UserProfile on method 'getStaffName()'. I have also added an HTTP data collector that retrieves the sessionkey 'userProfile'. Unfortunately, the getStaffName method does not appear to be called for every request, and the UserProfile object does not have a 'toString' defined.&lt;/P&gt;

&lt;P&gt;Is it possible to use an expression to extract a specific field from an object stored as a session attribute?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 04:10:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719767#M836</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2015-04-24T04:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Data Collectors for HTTP Session Attributes</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719768#M837</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Have you checked below&amp;nbsp;custom expression referred in below screenshot and see if that helps here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37706iDE3BDB23D16197D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Arun&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 12:41:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719768#M837</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2015-04-24T12:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Data Collectors for HTTP Session Attributes</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719769#M838</link>
      <description>&lt;P&gt;Unfortunately, that only works when naming a Business Transaction. If you want to use a Data Collector to extract data from a&amp;nbsp;session attribute, it gets a bit more difficult.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;For example, here is the definition of the Data Collector:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37699iD66B74B48F159366/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;you can see the&amp;nbsp;output of the data collector in HTTP Params, but since there is not toString, it's pretty useless.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37703i4BEF14827A38D747/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;So the question is, can I use an expression when defining a session key for a data instead of a fixed value?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2015 03:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719769#M838</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2015-04-25T03:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Data Collectors for HTTP Session Attributes</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719770#M839</link>
      <description>&lt;P&gt;Since I am only attemptive to retrieve the user id, I was able to use an expression on&amp;nbsp;User Principal to retrieve the user id I need.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/37708i3FDC8B438C59B819/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2015 04:31:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719770#M839</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2015-04-25T04:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Collectors for HTTP Session Attributes</title>
      <link>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719771#M840</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;i meant sample config, as i stated and you have noticed custom expression is applicable for both BT and http collector collection, good to hear custom expression helped here.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 13:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/AppD-Archive/Data-Collectors-for-HTTP-Session-Attributes/m-p/719771#M840</guid>
      <dc:creator>Arun_Dasetty</dc:creator>
      <dc:date>2015-04-27T13:07:11Z</dc:date>
    </item>
  </channel>
</rss>

