<?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: Unique users by application over time periods in a timechart table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542385#M153648</link>
    <description>&lt;P&gt;one from solution...&lt;/P&gt;&lt;PRE&gt;your base search with maximum timerange you have e.g. last 1 month | fields _time UserId ApplicationId
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1d"),"Last_1_Day","")
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1w"),TimePeriod." Last_1_Week",TimePeriod)
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1mon"),TimePeriod." Last_1_Month",TimePeriod)
| makemv TimePeriod
| chart dc(UserId) over ApplicationId by TimePeriod&lt;/PRE&gt;</description>
    <pubDate>Thu, 04 Mar 2021 16:47:25 GMT</pubDate>
    <dc:creator>bharanithippa</dc:creator>
    <dc:date>2021-03-04T16:47:25Z</dc:date>
    <item>
      <title>Unique users by application over time periods in a timechart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/333132#M99057</link>
      <description>&lt;P&gt;As a example, I have a search that calculates "Unique Users per Application" and this can be constrained to a particular timeframe with either a timerange picker or earliest/latest fields.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats dc(UserId) AS UserLogonCount BY ApplicationId | table ApplicationId UserLogonCount
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I would like to do is extend this to essentially be a timechart but in a table format that shows 1 day, 1 week, 1 month values etc.&lt;/P&gt;

&lt;P&gt;The only way I can think of is to append multiple searches that use earliest/latest to define the different time periods, however this seen rather inefficient to me.&lt;/P&gt;

&lt;P&gt;What other options do I have?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Sep 2017 23:37:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/333132#M99057</guid>
      <dc:creator>nickstone</dc:creator>
      <dc:date>2017-09-12T23:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users by application over time periods in a timechart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/333133#M99058</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search with maximum timerange you have e.g. last 1 month | fields _time UserId ApplicationId
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1d"),"Last_1_Day","")
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1w"),TimePeriod." Last_1_Week",TimePeriod)
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1mon"),TimePeriod." Last_1_Month",TimePeriod)
| makemv TimePeriod
| chart dc(UserId) over ApplicationId by TimePeriod
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Sep 2017 02:20:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/333133#M99058</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-09-13T02:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users by application over time periods in a timechart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/333134#M99059</link>
      <description>&lt;P&gt;Bingo! I had actually seen another post like this one, but I didnt know about relative_time where the other example used fixed dates.&lt;/P&gt;

&lt;P&gt;Next job is to count the UserId but replace the value in the table with UserName instead&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Sep 2017 10:37:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/333134#M99059</guid>
      <dc:creator>nickstone</dc:creator>
      <dc:date>2017-09-13T10:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users by application over time periods in a timechart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542231#M153589</link>
      <description>&lt;P&gt;Hi Somesoni2 - thanks for the solution, I am getting same values for all day, week, month with search of 1month, not sure what is missing, tried few options no luck, please help. Thanks, BK&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 18:28:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542231#M153589</guid>
      <dc:creator>bharanithippa</dc:creator>
      <dc:date>2021-03-03T18:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users by application over time periods in a timechart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542259#M153599</link>
      <description>&lt;P&gt;What's the seach you tried?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 21:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542259#M153599</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2021-03-03T21:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: Unique users by application over time periods in a timechart table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542385#M153648</link>
      <description>&lt;P&gt;one from solution...&lt;/P&gt;&lt;PRE&gt;your base search with maximum timerange you have e.g. last 1 month | fields _time UserId ApplicationId
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1d"),"Last_1_Day","")
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1w"),TimePeriod." Last_1_Week",TimePeriod)
| eval TimePeriod=if(_time&amp;gt;=relative_time(now(),"-1mon"),TimePeriod." Last_1_Month",TimePeriod)
| makemv TimePeriod
| chart dc(UserId) over ApplicationId by TimePeriod&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Mar 2021 16:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unique-users-by-application-over-time-periods-in-a-timechart/m-p/542385#M153648</guid>
      <dc:creator>bharanithippa</dc:creator>
      <dc:date>2021-03-04T16:47:25Z</dc:date>
    </item>
  </channel>
</rss>

