<?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: Remove fields with same department in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245566#M10745</link>
    <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving fields  IP , Username ,Department | where mvcount(mvdedup(Department))&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 May 2016 14:32:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-05-11T14:32:02Z</dc:date>
    <item>
      <title>Remove fields with same department</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245563#M10742</link>
      <description>&lt;P&gt;We have developed a query to list out all the user accounts that login from a particular IP address, the table is as follows.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IP             Username      Department
xxx.xxx.xxx      abc123          Dept A
                 def456          Dept B
                 efg789          Dept C
--------------------------------------------------------------------
yyy.yyy.yyy      xyz123          Dept A
                 zxc456          Dept A
--------------------------------------------------------------------
zzz.zzz.zzz      aaa234          Dept A
                 bbb456          Dept A
                 ccc123          Dept C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What we want to enhance the case now is removing the entry that with same department, that means the new table becomes&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IP              Username     Department
xxx.xxx.xxx       abc123         Dept A
                  def456         Dept B
                  efg789         Dept C
--------------------------------------------------------------------
zzz.zzz.zzz       aaa234         Dept A
                  bbb456         Dept A
                  ccc123         Dept C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have no idea on this. Anyone please help.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 08:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245563#M10742</guid>
      <dc:creator>kcchu01</dc:creator>
      <dc:date>2016-05-11T08:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove fields with same department</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245564#M10743</link>
      <description>&lt;P&gt;Could you post your current search?&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 11:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245564#M10743</guid>
      <dc:creator>jluo_splunk</dc:creator>
      <dc:date>2016-05-11T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove fields with same department</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245565#M10744</link>
      <description>&lt;P&gt;If I understand you correctly, you would like to throw away any entry which only has a single department in it.  You can do that by adding this to your search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats dc(Department) AS numDepartments BY IP | where numDepartments&amp;gt;1 | fields - numDepartments
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that is now what you mean then your example, in combination with your text, makes no sense.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 14:13:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245565#M10744</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-11T14:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Remove fields with same department</title>
      <link>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245566#M10745</link>
      <description>&lt;P&gt;Try this &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your current search giving fields  IP , Username ,Department | where mvcount(mvdedup(Department))&amp;gt;1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 14:32:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Remove-fields-with-same-department/m-p/245566#M10745</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-05-11T14:32:02Z</dc:date>
    </item>
  </channel>
</rss>

