<?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: splunk search for users logging onto servers in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145530#M40564</link>
    <description>&lt;P&gt;Yuou can rename the field name in subsearch. That way you can keep your csv headers  same as before.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Oct 2014 22:13:47 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-10-07T22:13:47Z</dc:date>
    <item>
      <title>splunk search for users logging onto servers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145526#M40560</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have deployed splunk to log data of users who are logging onto servers (unix and windows).  I want to create a report that shows users who are not permitted to log onto those servers. I have been given a list of users which are permitted to log on so wanted to create a search which shows user logging on except the permitted users.  I am trying to use the following:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;| stats count by User &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Please can someone advise what commands to use to included the list of permitted users i have and to exempt them from the search result?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;

&lt;P&gt;Chetan&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 12:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145526#M40560</guid>
      <dc:creator>chetanchauhan</dc:creator>
      <dc:date>2014-09-30T12:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search for users logging onto servers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145527#M40561</link>
      <description>&lt;P&gt;Try something like this (assuming you have the list of permitted users and configured it as lookup, say allowed_users.csv)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search giving all users | search NOT [ |inputlookup allowed_users.csv | table User] | stats count as LoginCount by User
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This should show you Login count for the users which are not present in the allowed_users.csv which users which are allowed.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2014 14:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145527#M40561</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-09-30T14:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search for users logging onto servers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145528#M40562</link>
      <description>&lt;P&gt;,Hi,&lt;/P&gt;

&lt;P&gt;thanks for your assistance. is there any particular place the allowed_user.csv would need to be? for example if i am on a Terminal Server and running Splunk HTTP can that csv be somewhere on that terminal server and i direct the lookup to it?&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2014 09:43:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145528#M40562</guid>
      <dc:creator>chetanchauhan</dc:creator>
      <dc:date>2014-10-01T09:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search for users logging onto servers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145529#M40563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;thanks the following worked:&lt;/P&gt;

&lt;P&gt;EventCode=18453 | search NOT [ | inputlookup allowed_users.csv ] | stats count by User&lt;/P&gt;

&lt;P&gt;however the header of the CSV file should be User to match the syslog message.&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 15:37:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145529#M40563</guid>
      <dc:creator>chetanchauhan</dc:creator>
      <dc:date>2014-10-07T15:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search for users logging onto servers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145530#M40564</link>
      <description>&lt;P&gt;Yuou can rename the field name in subsearch. That way you can keep your csv headers  same as before.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2014 22:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145530#M40564</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-07T22:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: splunk search for users logging onto servers</title>
      <link>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145531#M40565</link>
      <description>&lt;P&gt;I think that your user.csv must be placed in $SPLUNK_HOME/ etc/system/lookups&lt;BR /&gt;
on your splunk server and you need to add  some stanzas  to the $SPLUNK_HOME/ etc/system/transforms.conf&lt;BR /&gt;
somthing like that:&lt;BR /&gt;
[allowed_users]&lt;BR /&gt;
filename=user.csv&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 09:15:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/splunk-search-for-users-logging-onto-servers/m-p/145531#M40565</guid>
      <dc:creator>kalianov</dc:creator>
      <dc:date>2020-09-29T09:15:41Z</dc:date>
    </item>
  </channel>
</rss>

