<?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 Monthly Occupancy Report with Daily Events in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473270#M7614</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am trying to generate a Monthly Occupancy Report of users with Daily events. &lt;/P&gt;

&lt;P&gt;The issue is the Daily events consists of Multiple entries of a user, so I have to use "dedup user" command to get single entries every day&lt;/P&gt;

&lt;P&gt;As running dedup command on Monthly report will give single entry of a user in a month, I am extracting reports per day and then consolidate it to get a monthly report which is time consuming.&lt;/P&gt;

&lt;P&gt;Looking for suggestions/commands which will help to run a monthly report with Single event of a user (per day).&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;| lookup AD-lookup sAMAccountName as user output displayName,givenName,sn,mail,telephoneNumber,mobile,manager,department &lt;BR /&gt;
| eval Date=strftime(_time, "%d-%m-%Y"), Time=strftime(_time, "%H:%M") | table Date,Time, user, displayName, title, department, host, Address, Subnet, Site, mail, mobile &lt;BR /&gt;
| dedup user &lt;BR /&gt;
| sort 0 -Date,-Time |&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:05:00 GMT</pubDate>
    <dc:creator>spodda01da</dc:creator>
    <dc:date>2020-09-30T02:05:00Z</dc:date>
    <item>
      <title>Monthly Occupancy Report with Daily Events</title>
      <link>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473270#M7614</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am trying to generate a Monthly Occupancy Report of users with Daily events. &lt;/P&gt;

&lt;P&gt;The issue is the Daily events consists of Multiple entries of a user, so I have to use "dedup user" command to get single entries every day&lt;/P&gt;

&lt;P&gt;As running dedup command on Monthly report will give single entry of a user in a month, I am extracting reports per day and then consolidate it to get a monthly report which is time consuming.&lt;/P&gt;

&lt;P&gt;Looking for suggestions/commands which will help to run a monthly report with Single event of a user (per day).&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;| lookup AD-lookup sAMAccountName as user output displayName,givenName,sn,mail,telephoneNumber,mobile,manager,department &lt;BR /&gt;
| eval Date=strftime(_time, "%d-%m-%Y"), Time=strftime(_time, "%H:%M") | table Date,Time, user, displayName, title, department, host, Address, Subnet, Site, mail, mobile &lt;BR /&gt;
| dedup user &lt;BR /&gt;
| sort 0 -Date,-Time |&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473270#M7614</guid>
      <dc:creator>spodda01da</dc:creator>
      <dc:date>2020-09-30T02:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Occupancy Report with Daily Events</title>
      <link>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473271#M7615</link>
      <description>&lt;P&gt;Really, you don't have to go to all that trouble.  &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;dedup&lt;/CODE&gt; is a little more flexible than you are thinking.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  your search that gets one or more records for each user per day for the whole month
 | table _time User
 | bin _time span=1d as Day
 | dedup User Day 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above gets you one record per User per Day.  &lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2019 21:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473271#M7615</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2019-09-06T21:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly Occupancy Report with Daily Events</title>
      <link>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473272#M7616</link>
      <description>&lt;P&gt;Thank you, it worked&lt;/P&gt;</description>
      <pubDate>Fri, 13 Sep 2019 05:37:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Monthly-Occupancy-Report-with-Daily-Events/m-p/473272#M7616</guid>
      <dc:creator>spodda01da</dc:creator>
      <dc:date>2019-09-13T05:37:37Z</dc:date>
    </item>
  </channel>
</rss>

