<?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 Query for Logged-in Users on Linux Servers in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491576#M17023</link>
    <description>&lt;P&gt;Do you have any app that keep tracks on this so you can search for it?&lt;BR /&gt;
Or do you want to see usernames that are logged into a splunk instance running on a Linux server?&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2019 12:06:31 GMT</pubDate>
    <dc:creator>broberg</dc:creator>
    <dc:date>2019-10-02T12:06:31Z</dc:date>
    <item>
      <title>Splunk Search Query for Logged-in Users on Linux Servers</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491575#M17022</link>
      <description>&lt;P&gt;What is the splunk Search Query for Logged-in Users on Linux Servers &lt;BR /&gt;
I want to have dashboard for currently logged in users in Linux Servers&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2019 08:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491575#M17022</guid>
      <dc:creator>umesh_phendarka</dc:creator>
      <dc:date>2019-10-01T08:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Query for Logged-in Users on Linux Servers</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491576#M17023</link>
      <description>&lt;P&gt;Do you have any app that keep tracks on this so you can search for it?&lt;BR /&gt;
Or do you want to see usernames that are logged into a splunk instance running on a Linux server?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 12:06:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491576#M17023</guid>
      <dc:creator>broberg</dc:creator>
      <dc:date>2019-10-02T12:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Search Query for Logged-in Users on Linux Servers</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491577#M17024</link>
      <description>&lt;P&gt;If you want to search for linux users current login, you should identify the linux log where this data is being send to and index this file into Splunk.&lt;BR /&gt;
Possible steps to take:&lt;BR /&gt;
create an input to read this log file, assign this data to an index and sourcetype&lt;BR /&gt;
Sample:&lt;BR /&gt;
[monitor:///var/log/.log]&lt;BR /&gt;
disabled = false&lt;BR /&gt;
sourcetype = secure_log&lt;BR /&gt;
index=linux&lt;BR /&gt;
Depends on how the user information is showing on the file, there is a potential regex usage to extract the user from the log, if splunk is not capable to extract this info.&lt;/P&gt;

&lt;P&gt;Please see a sample of code from this link. In this sample, the index is not specified, thus I recommend to always specify an index to assigned your indexed data and to not relying on default configuration if you are running on large splunk environment to avoid performance issues&lt;BR /&gt;
&lt;A href="https://gosplunk.com/list-of-users-in-a-linux-environment/"&gt;https://gosplunk.com/list-of-users-in-a-linux-environment/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Splunk potential search based on the link attached above&lt;/P&gt;

&lt;P&gt;index=linux sourcetype=secure_log | rex "\suser&lt;A href="https://community.splunk.com/?S+w+"&gt;^'&lt;/A&gt;" | stats count by User&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 05:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Splunk-Search-Query-for-Logged-in-Users-on-Linux-Servers/m-p/491577#M17024</guid>
      <dc:creator>ivanreis</dc:creator>
      <dc:date>2019-10-03T05:48:47Z</dc:date>
    </item>
  </channel>
</rss>

