<?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: Add count to user journey flow in Splunk App for Web Analytics in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339960#M100817</link>
    <description>&lt;P&gt;have you broken the syntax down to simply just count the web uri to see what it should be? make sure it's all coming in right.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jun 2017 12:11:24 GMT</pubDate>
    <dc:creator>cmerriman</dc:creator>
    <dc:date>2017-06-12T12:11:24Z</dc:date>
    <item>
      <title>Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339956#M100813</link>
      <description>&lt;P&gt;Dear Community,&lt;/P&gt;

&lt;P&gt;I have a problem. I'm trying to add the count per bar to my user journey flow in "Splunk App for Web Analytics".&lt;BR /&gt;
At the top at the landing page filter you can see the total count but I want to split it to the different bar's. &lt;/P&gt;

&lt;P&gt;It should looks like this: /contentA/contentB/index.xhtml &lt;STRONG&gt;(120)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;This is a picture of my user journey flow:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/205727-user-journey-flow.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;This is my code where I get the data for the diagram:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly=t count FROM datamodel=Web WHERE Web.site="$site$" "Web.eventtype"=pageview "Web.http_session_pageviews"&amp;gt;1 Web.uri="$landing_page$*" GROUPBY "Web.site","Web.http_session",_time span=1s,"Web.http_referer","Web.uri","Web.http_session_channel"
| rex field=Web.uri mode=sed "$rex_landing_page$"
| rename Web.uri AS to "Web.http_referer" AS from "Web.http_session_channel" AS channel "Web.site" AS site "Web.http_session" AS http_session
| rex field=from "https?://.+?(?&amp;lt;from_path&amp;gt;/[^\\?]+)" 
| rename from_path AS from
| eval from=if(isnull(from),"$site$",from)
| streamstats global=f count AS interaction by http_session 
| eval interaction=interaction-1
| where interaction&amp;lt;=round($limit$/20,0)
| stats list(from) AS from, list(to) AS to,earliest(to) AS landing_page, list(channel) as channel, list(interaction) as interaction by http_session
| search to="$to$" landing_page="$landing_page$"
| eval fields = mvzip(from,mvzip(to,mvzip(interaction,channel)))
| fields http_session fields
| mvexpand fields
| rex field=fields "(?&amp;lt;from&amp;gt;[^\,]+),(?&amp;lt;to&amp;gt;[^\,]+),(?&amp;lt;interaction&amp;gt;[^\,]+),(?&amp;lt;channel&amp;gt;.+)"
| eval from=if(interaction=0, "", from)
| eval from=if("$landing_page$"!="*", "$site$"."$landing_page$", from)
| table http_session from to interaction
| where interaction&amp;gt;=1
| where to!="$landing_page$"
| where to!=from
| stats count by from,to,interaction
| sort interaction,-count,from,to
| streamstats global=f count AS interaction_rank by interaction
| where interaction_rank&amp;lt;=round($limit$/10,0)
| stats sum(count) AS count by from,to
| sort from to count
| head $limit$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've tried this and inserted it after | rex field=Web.uri mode=sed "$rex_landing_page$" :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Web.uri=Web.uri+" ("+count+")"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But this don't work.&lt;/P&gt;

&lt;P&gt;Whats wrong? &lt;/P&gt;

&lt;P&gt;Thanks a lot&lt;BR /&gt;
Johannes&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:24:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339956#M100813</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2020-09-29T14:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339957#M100814</link>
      <description>&lt;P&gt;just as a quick glance, have you tried: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval "Web.uri"='Web.uri'+" ("+count+")"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Jun 2017 11:41:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339957#M100814</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-08T11:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339958#M100815</link>
      <description>&lt;P&gt;Not working sry &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2017 12:38:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339958#M100815</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2017-06-08T12:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339959#M100816</link>
      <description>&lt;P&gt;The result is always 1 but that cant be the right?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:08:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339959#M100816</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2017-06-12T12:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339960#M100817</link>
      <description>&lt;P&gt;have you broken the syntax down to simply just count the web uri to see what it should be? make sure it's all coming in right.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:11:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339960#M100817</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2017-06-12T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339961#M100818</link>
      <description>&lt;P&gt;I've tried this but can't find a way to deal with this &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:35:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339961#M100818</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2017-06-12T12:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339962#M100819</link>
      <description>&lt;P&gt;@woodcock Do you have any idea what I can do?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2017 12:43:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339962#M100819</guid>
      <dc:creator>JohannesGmelin</dc:creator>
      <dc:date>2017-06-12T12:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add count to user journey flow in Splunk App for Web Analytics</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339963#M100820</link>
      <description>&lt;P&gt;You can fix this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Web.uri=Web.uri+" ("+count+")"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Web.uri=$Web.uri$+" ("+count+")"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Web.uri='Web.uri'+" ("+count+")"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:48:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Add-count-to-user-journey-flow-in-Splunk-App-for-Web-Analytics/m-p/339963#M100820</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-06-12T15:48:20Z</dc:date>
    </item>
  </channel>
</rss>

