<?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: Analyze where the users &amp;quot;looking for&amp;quot; information in our application in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412361#M172770</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;Thank you for your answer! I will try it as soon as possible and get back to you!&lt;/P&gt;</description>
    <pubDate>Mon, 04 Mar 2019 08:14:44 GMT</pubDate>
    <dc:creator>jyab6z</dc:creator>
    <dc:date>2019-03-04T08:14:44Z</dc:date>
    <item>
      <title>Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412354#M172763</link>
      <description>&lt;P&gt;Our log looks like as following after first filter:&lt;/P&gt;

&lt;P&gt;Date...Time...UserID...Function...Level 1...Level 2...Section...&lt;BR /&gt;
20190227 03:56:22:788 [ftjmvf0534faqmyhbwp51e0d] - Function =&amp;gt; [level one]10[/level one][level two]50[/level two][section]0089[/section]&lt;BR /&gt;
20190227 03:55:09:933 [bmmwjmls4uxxr0ypem1ietiw] - Function =&amp;gt; [level one]01[/level one][level two]35[/level two][section]5000[/section]&lt;BR /&gt;
20190227 03:46:35:503 [njdh00t2ldqwuocvtdzdywcr] - Function =&amp;gt; [level one]06[/level one][level two]01[/level two][section]4033[/section]&lt;BR /&gt;
20190227 03:46:32:587 [njdh00t2ldqwuocvtdzdywcr] - Function =&amp;gt; [level one]06[/level one][level two]01[/level two][section]4063[/section]&lt;BR /&gt;
20190227 03:45:14:681 [njdh00t2ldqwuocvtdzdywcr] - Function =&amp;gt; [level one]08[/level one][level two]05[/level two][section]5084[/section]&lt;BR /&gt;
20190227 03:44:56:292 [p4gcrhvhaqib4wm4c0ask0jh] - Function =&amp;gt; [level one]18[/level one][level two]55[/level two][section]0030[/section]&lt;BR /&gt;
20190227 03:33:15:450 [htwym1erwjqn04d2hnhwbuxa] - Function =&amp;gt; [level one]06[/level one][level two]01[/level two][section]4063[/section]&lt;BR /&gt;
20190227 03:33:07:554 [htwym1erwjqn04d2hnhwbuxa] - Function =&amp;gt; [level one]06[/level one][level two]01[/level two][section]4033[/section]&lt;BR /&gt;
20190227 03:30:12:723 [mcgx31a2u0q4jnlhmr4luxuf] - Function =&amp;gt; [level one]05[/level one][level two]20[/level two][section]0087[/section]&lt;BR /&gt;
20190227 03:28:30:050 [h0a0zwhtr3o1ennw1fasoekf] - Function =&amp;gt; [level one]18[/level one][level two]15[/level two][section]5310[/section]&lt;BR /&gt;
20190227 03:23:57:447 [h0a0zwhtr3o1ennw1fasoekf] - Function =&amp;gt; [level one]10[/level one][level two]50[/level two][section]0025[/section]&lt;BR /&gt;
20190227 03:09:53:089 [p5zuajzkinfga5tm2nf4g5d1] - Function =&amp;gt; [level one]03[/level one][level two]35[/level two][section]7507[/section]&lt;BR /&gt;
20190227 03:09:18:810 [p5zuajzkinfga5tm2nf4g5d1] - Function =&amp;gt; [level one]03[/level one][level two]35[/level two][section]5245[/section]&lt;BR /&gt;
20190227 02:57:04:675 [s3spxd4hsjqibkbywlrhd4og] - Function =&amp;gt; [level one]01[/level one][level two]01[/level two][section]5105[/section]&lt;BR /&gt;
20190227 02:53:54:123 [s3spxd4hsjqibkbywlrhd4og] - Function =&amp;gt; [level one]01[/level one][level two]05[/level two][section]5106[/section]&lt;BR /&gt;
20190227 02:53:49:646 [l44x4bvvs2siajkkjw5rdwfv] - Function =&amp;gt; [level one]01[/level one][level two]99[/level two][section]5802[/section]&lt;BR /&gt;
20190227 02:53:15:358 [l44x4bvvs2siajkkjw5rdwfv] - Function =&amp;gt; [level one]01[/level one][level two]99[/level two][section]5802[/section]&lt;BR /&gt;
20190227 02:52:45:112 [l44x4bvvs2siajkkjw5rdwfv] - Function =&amp;gt; [level one]01[/level one][level two]99[/level two][section]5802[/section]&lt;BR /&gt;
20190227 02:52:40:848 [s3spxd4hsjqibkbywlrhd4og] - Function =&amp;gt; [level one]04[/level one][level two]05[/level two][section]0231[/section]&lt;BR /&gt;
20190227 02:52:34:945 [l44x4bvvs2siajkkjw5rdwfv] - Function =&amp;gt; [level one]01[/level one][level two]30[/level two][section]5000[/section]&lt;/P&gt;

&lt;P&gt;What I want to analyze is where the users "looking for" information in our application.&lt;BR /&gt;
The hypothesis is, same user, same date, and same Level 1, if the Time difference between two events are less than x secounds, then the user is "looking for" level 2 information in the certain level 1. Show the bar graph with level 1 as x-axis and count as y-axis.&lt;/P&gt;

&lt;P&gt;Is there anyone who can help me with the code? Is this possible?&lt;BR /&gt;
Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 09:04:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412354#M172763</guid>
      <dc:creator>jyab6z</dc:creator>
      <dc:date>2019-03-01T09:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412355#M172764</link>
      <description>&lt;P&gt;would you explain the hypothesis more clearly please ?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 15:11:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412355#M172764</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2019-03-01T15:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412356#M172765</link>
      <description>&lt;P&gt;Did you already made a field extraction for your fields userid, level_one and level_two?&lt;/P&gt;

&lt;P&gt;Otherwise you can use this regex which works for me with your provided sample data:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;basesearch | rex "\[(?&amp;lt;userid&amp;gt;\w+)\].*one\](?&amp;lt;level_one&amp;gt;\d+).*two\](?&amp;lt;level_two&amp;gt;\d+).*tion\](?&amp;lt;section&amp;gt;\d+)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After that you can easily create your bar chart by just counting the events by  &lt;CODE&gt;level_one&lt;/CODE&gt; which should answer your question for &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Show the bar graph with level 1 as x-axis and count as y-axis.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count by level_one
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:32:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412356#M172765</guid>
      <dc:creator>damann</dc:creator>
      <dc:date>2020-09-29T23:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412357#M172766</link>
      <description>&lt;P&gt;Hi Damann,&lt;/P&gt;

&lt;P&gt;Thank you for your answer! Appreciate it!&lt;BR /&gt;
Actually, I got stuck on the if-statement and calculate the time difference between events.&lt;BR /&gt;
Any idea how to express them?&lt;/P&gt;

&lt;P&gt;Thank you again for your contribution!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 07:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412357#M172766</guid>
      <dc:creator>jyab6z</dc:creator>
      <dc:date>2019-03-04T07:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412358#M172767</link>
      <description>&lt;P&gt;Use delta command for that&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 07:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412358#M172767</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2019-03-04T07:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412359#M172768</link>
      <description>&lt;P&gt;Hi @damann &lt;/P&gt;

&lt;P&gt;What you're looking for is something like this (wasn't easy, fun building it):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;YourBaseSearch | stats count first(_time) AS initialTime last(_time) AS endTime by UserID date levelOne | eval x=endTime-initialTime | where x&amp;gt; YourDefinedValue | fields count levelOne
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;First YourBaseSearch grabs the events, then &lt;CODE&gt;stats&lt;/CODE&gt; gets the count, first time and last time for each group of user, date and level one as you mentioned above. Then the &lt;CODE&gt;eval&lt;/CODE&gt; calculates x which is the difference between first and last time and finally the pretty IF you were looking for using &lt;CODE&gt;where&lt;/CODE&gt;. Once all that is done &lt;CODE&gt;fields&lt;/CODE&gt; will keep only the two fields you need for your chart.&lt;/P&gt;

&lt;P&gt;Let me know if that helps !&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412359#M172768</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-03-04T08:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412360#M172769</link>
      <description>&lt;P&gt;Yes, each event is a mouse click in our application where the user navigate to find the information they need. Users need to click level 1 to expand the level 2 and so on.&lt;BR /&gt;
Our hypothesis is:&lt;BR /&gt;
If our information in the application are structured well, users will find information by clicking correct level 1 and level 2 with few mouse click and navigate to relevant information.&lt;BR /&gt;
If the users clicking into a sertain level 1 and quickly clicking through level 2, that means users don't know where the information are and looking for it.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:04:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412360#M172769</guid>
      <dc:creator>jyab6z</dc:creator>
      <dc:date>2019-03-04T08:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412361#M172770</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;Thank you for your answer! I will try it as soon as possible and get back to you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:14:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412361#M172770</guid>
      <dc:creator>jyab6z</dc:creator>
      <dc:date>2019-03-04T08:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Analyze where the users "looking for" information in our application</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412362#M172771</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;

&lt;P&gt;It works! Thank you! I had to add | convert timeformat="%H:%M:%S" dur2sec(Time)  before your code in  search because I don't use _time, thereafter I used stats count in the end to plot my graph instead. &lt;BR /&gt;
So, following code works for me, Time is defined by myself:&lt;BR /&gt;
YourBaseSearch | convert timeformat="%H:%M:%S" dur2sec(Time) | stats count first(Time) AS initialTime last(Time) AS endTime by UserID date levelOne | eval x=endTime-initialTime | where x&amp;gt; YourDefinedValue | stats count by levelOne&lt;/P&gt;

&lt;P&gt;Thank you again David and I will accept the  answer. &lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2019 08:30:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Analyze-where-the-users-quot-looking-for-quot-information-in-our/m-p/412362#M172771</guid>
      <dc:creator>jyab6z</dc:creator>
      <dc:date>2019-03-05T08:30:05Z</dc:date>
    </item>
  </channel>
</rss>

