<?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 do you expand multiple fields from a transaction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395977#M114955</link>
    <description>&lt;P&gt;I'm trying to mvexpand multiple fields from a transaction, particularly a time and uri_path from an Apache-style access log.&lt;/P&gt;

&lt;P&gt;I'm trying this out but it does not work correctly, as it duplicates several fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=web_logs_valid user=* uri_path != /server*/*
| eval orig_time = _time
| transaction user useragent
| streamstats count as i
| mvexpand uri
| mvexpand orig_time
| table i orig_time uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the proper way of expanding multiple fields from a transaction?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Jul 2019 23:34:02 GMT</pubDate>
    <dc:creator>khevans</dc:creator>
    <dc:date>2019-07-12T23:34:02Z</dc:date>
    <item>
      <title>How do you expand multiple fields from a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395977#M114955</link>
      <description>&lt;P&gt;I'm trying to mvexpand multiple fields from a transaction, particularly a time and uri_path from an Apache-style access log.&lt;/P&gt;

&lt;P&gt;I'm trying this out but it does not work correctly, as it duplicates several fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=web_logs_valid user=* uri_path != /server*/*
| eval orig_time = _time
| transaction user useragent
| streamstats count as i
| mvexpand uri
| mvexpand orig_time
| table i orig_time uri
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What is the proper way of expanding multiple fields from a transaction?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 23:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395977#M114955</guid>
      <dc:creator>khevans</dc:creator>
      <dc:date>2019-07-12T23:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do you expand multiple fields from a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395978#M114956</link>
      <description>&lt;P&gt;Just guessing, but perhaps this will work better.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=web_logs_valid user=* uri_path != /server*/*
| eval orig_time = _time
| stats values(*) as * by user, useragent
| streamstats count as i
| mvexpand uri
| mvexpand orig_time
| table i orig_time uri
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 13 Jul 2019 21:33:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395978#M114956</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-07-13T21:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do you expand multiple fields from a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395979#M114957</link>
      <description>&lt;P&gt;The "proper" way is to never user &lt;CODE&gt;transaction&lt;/CODE&gt; at all.  Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eventtype=web_logs_valid user=* uri_path != /server*/*
| streamstats window=2 range(_time) AS pause BY user useragent
| streamstats count(eval(pause&amp;gt;300)) AS sessionID by user useragent
| table _time sessionID uri user useragent
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Jul 2019 16:05:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-you-expand-multiple-fields-from-a-transaction/m-p/395979#M114957</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-07-15T16:05:05Z</dc:date>
    </item>
  </channel>
</rss>

