<?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 Need help forming my search query for linux_secure sourcetype in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-forming-my-search-query-for-linux-secure-sourcetype/m-p/335694#M99705</link>
    <description>&lt;P&gt;I am receiving the /var/log/secure logs from my linux forwarder I am trying to create a search string that can detect when a user has added any user to sudo access. For example, I'd like to be able to detect when user1 adds user2 to the wheel group in order to give user2 sudo access.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2017 19:57:09 GMT</pubDate>
    <dc:creator>jcorkey</dc:creator>
    <dc:date>2017-07-27T19:57:09Z</dc:date>
    <item>
      <title>Need help forming my search query for linux_secure sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-forming-my-search-query-for-linux-secure-sourcetype/m-p/335694#M99705</link>
      <description>&lt;P&gt;I am receiving the /var/log/secure logs from my linux forwarder I am trying to create a search string that can detect when a user has added any user to sudo access. For example, I'd like to be able to detect when user1 adds user2 to the wheel group in order to give user2 sudo access.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 19:57:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-forming-my-search-query-for-linux-secure-sourcetype/m-p/335694#M99705</guid>
      <dc:creator>jcorkey</dc:creator>
      <dc:date>2017-07-27T19:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help forming my search query for linux_secure sourcetype</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-forming-my-search-query-for-linux-secure-sourcetype/m-p/335695#M99706</link>
      <description>&lt;P&gt;I used this to find my user using visudo to add a user to wheel. I am sure there a few different conditions that you'd hunt for...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=* host=* source=/var/log/secure visudo OR usermod
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://i.imgur.com/DhdtsEI.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Replace with your commands or logic accordingly. &lt;/P&gt;

&lt;P&gt;I use the nix TA found here to ensure my field extractions (Splunk PS configs, you can use whatever you like): &lt;A href="https://bitbucket.org/SPLServices/splunk_ta_nix/src"&gt;https://bitbucket.org/SPLServices/splunk_ta_nix/src&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;While on the topic of authentication and privilege, check out this wicked auth app by @dshpritz&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/3639/"&gt;https://splunkbase.splunk.com/app/3639/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 22:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-forming-my-search-query-for-linux-secure-sourcetype/m-p/335695#M99706</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-07-27T22:51:50Z</dc:date>
    </item>
  </channel>
</rss>

