<?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: Need a Help with Query for Report in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460203#M7412</link>
    <description>&lt;P&gt;Hello, &lt;BR /&gt;
 Unfortunately, I am getting all  3150 login names When I am trying with Below Query.&lt;/P&gt;

&lt;P&gt;index=lookups sourcetype=users_roles earliest=-7d@d latest=now&lt;BR /&gt;
 NOT &lt;BR /&gt;
    [search index=lookups sourcetype=users_roles earliest=-14d@d latest=-7d@d]&lt;BR /&gt;
| stats count by login_name&lt;/P&gt;

&lt;P&gt;3,143 events (10/7/19 12:00:00.000 AM to 10/14/19 3:21:06.000 PM)&lt;/P&gt;

&lt;P&gt;Please do help if there is something else to sort out this issue..&lt;/P&gt;

&lt;P&gt;Thanks, &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 02:36:56 GMT</pubDate>
    <dc:creator>satyaallaparthi</dc:creator>
    <dc:date>2020-09-30T02:36:56Z</dc:date>
    <item>
      <title>Need a Help with Query for Report</title>
      <link>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460201#M7410</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;

&lt;P&gt;I have user data which is ingesting every week on Saturday in to Splunk. &lt;/P&gt;

&lt;P&gt;I have 3000 Events on 5th Oct and 3150 Events on 12th Oct. i.e, 150 new users created in last one week. &lt;/P&gt;

&lt;P&gt;And I have the fields called login_name and User_type. &lt;/P&gt;

&lt;P&gt;I want to create a report showing new login_name by comparing 2 weeks of data. which is not in Splunk on 5th Oct and which is on 12th Oct. &lt;/P&gt;

&lt;P&gt;Please do help me with the query.&lt;/P&gt;

&lt;P&gt;Thanks in Advance.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:36:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460201#M7410</guid>
      <dc:creator>satyaallaparthi</dc:creator>
      <dc:date>2020-09-30T02:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Help with Query for Report</title>
      <link>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460202#M7411</link>
      <description>&lt;P&gt;There probably are a few ways to do this.  One is with subsearch.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=foo earliest=-1w@w6 NOT [index=foo earliest=-2w@w6 latest=-1w@w5 | fields login_name | format]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or use &lt;CODE&gt;set diff&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;set diff [index=foo earliest=-2w@w6 latest=-1w@w5] [index=foo earliest=-1w@w6]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 19:06:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460202#M7411</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-14T19:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Help with Query for Report</title>
      <link>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460203#M7412</link>
      <description>&lt;P&gt;Hello, &lt;BR /&gt;
 Unfortunately, I am getting all  3150 login names When I am trying with Below Query.&lt;/P&gt;

&lt;P&gt;index=lookups sourcetype=users_roles earliest=-7d@d latest=now&lt;BR /&gt;
 NOT &lt;BR /&gt;
    [search index=lookups sourcetype=users_roles earliest=-14d@d latest=-7d@d]&lt;BR /&gt;
| stats count by login_name&lt;/P&gt;

&lt;P&gt;3,143 events (10/7/19 12:00:00.000 AM to 10/14/19 3:21:06.000 PM)&lt;/P&gt;

&lt;P&gt;Please do help if there is something else to sort out this issue..&lt;/P&gt;

&lt;P&gt;Thanks, &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 02:36:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460203#M7412</guid>
      <dc:creator>satyaallaparthi</dc:creator>
      <dc:date>2020-09-30T02:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Help with Query for Report</title>
      <link>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460204#M7413</link>
      <description>&lt;P&gt;Have you tried the other query?&lt;/P&gt;

&lt;P&gt;I've modified my answer. See if that makes a difference.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 20:11:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Need-a-Help-with-Query-for-Report/m-p/460204#M7413</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-10-14T20:11:04Z</dc:date>
    </item>
  </channel>
</rss>

