<?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: Search for sudo (linux_secure does not exist?) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571762#M199241</link>
    <description>&lt;P&gt;About the obsoleteness - sorry, my bad, I mistaken one app with another and quoted something wrongly. Forget it.&lt;/P&gt;&lt;P&gt;About the inputs - how are you receiving (or want to receive) the logs? Directly on the splunk server? On HF? On UF?&lt;/P&gt;&lt;P&gt;In general - creating proper inputs.conf stanzas in $SPLUNK_HOME/etc/apps/Splunk_TA_nix/local/inputs.conf and restarting the splunk component responsible for reading the logs should suffice.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 07:11:12 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2021-10-21T07:11:12Z</dc:date>
    <item>
      <title>Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571569#M199171</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am trying to setup some sort of dashboard to view a list of sudo commands by server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started with the IT Essentials Learn App which recommends this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=linux_secure process=sudo COMMAND=* host=*
| rex "COMMAND=(?&amp;lt;raw_command&amp;gt;.*)"
| eval COMMAND=coalesce(raw_command, COMMAND)
| table _time host USER PWD COMMAND&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This command did not work for me so I started playing with it a bit. I realized that the&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;sourcetype=linux_secure&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does not exist.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My understanding is that the splunk add-on for unix and linux is supposed to apply this sourcetype. I verified my configuration and didn't see anything to modify so I went ahead and looked at the $SPLUNK/etc/apps/Splunk_TA_nix/default/inputs.conf file. I cannot find a single instance of sourcetype=linux_secure in that config file so I don't think that sourcetype is being applied to any sources. Has linux_secure been deprecated or do I simply need to modify my local/inputs.conf file with something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have a recommended way to perform this search? I have tried a number of methods but am struggling to get what I need.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 23:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571569#M199171</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-19T23:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571588#M199175</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/237950"&gt;@jackjack&lt;/a&gt;&amp;nbsp; it exist in props conf here -&amp;nbsp;Splunk_TA_nix/default , by default inputs conf doesn't included secure logs monitor it's a file based monitoring. Guessing /var/log/secure could be the path.&lt;/P&gt;&lt;P&gt;if the nix add-on is rightly set-up , corresponding input enabled and you must have access to view the sourcetype then you should be able to find logs.&lt;/P&gt;&lt;P&gt;Have a chat with your admin/ system team.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 06:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571588#M199175</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-10-20T06:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571614#M199187</link>
      <description>&lt;P&gt;As with any add-on, it's just a tool that can help you interpret and maybe receive events from a particular kind of sources but it's up to you to make sure it's properly installed and configured.&lt;/P&gt;&lt;P&gt;Oh, and in case of TA_nix app, it's deprecated and you should rather use &lt;A href="https://splunkbase.splunk.com/app/3476/" target="_blank"&gt;https://splunkbase.splunk.com/app/3476/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"Be sure to also check out the certified sudo (&lt;A href="https://splunkbase.splunk.com/app/3038/" target="_blank"&gt;https://splunkbase.splunk.com/app/3038/&lt;/A&gt;), iptables (&lt;A href="https://splunkbase.splunk.com/app/3089/" target="_blank"&gt;https://splunkbase.splunk.com/app/3089/&lt;/A&gt;) and auditd (&lt;A href="https://splunkbase.splunk.com/app/2642/" target="_blank"&gt;https://splunkbase.splunk.com/app/2642/&lt;/A&gt;) apps."&lt;/P&gt;&lt;P&gt;But sitll it's all search-head side configuration. You need to make sure that proper logs are being pulled into splunk by configuring proper inputs with proper sourcetypes.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 09:06:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571614#M199187</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-20T09:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571689#M199212</link>
      <description>&lt;P&gt;Do you know of a source that tells me how to configure it? I have looked through the existing add-on &lt;A href="https://docs.splunk.com/Documentation/AddOns/released/UnixLinux/Enabledataandscriptedinputs" target="_self"&gt;setup documentation&lt;/A&gt; and cannot find what I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you sure the TA_nix add-on is deprecated? I thought it was just the App itself? I don't see any deprecation callouts on its page.&lt;/P&gt;&lt;P&gt;Those other apps aren't supported by splunk so I cannot use them. I've had issues with unsupported apps in the past so all apps must be splunk supported now. Additionally, it looks like they'll cause conflict with the add-on for unix, which is working (just not with the linux_secure type).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:13:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571689#M199212</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-20T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571690#M199213</link>
      <description>&lt;P&gt;Unfortunately I am responsible for both splunk setup and splunk searching.&lt;/P&gt;&lt;P&gt;I think you're right in that the data is there, I just need to find it another way. I think IT Essentials Learn just led me down the wrong path - perhaps linux_secure was the method in the past and things have changed now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571690#M199213</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-20T16:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571696#M199214</link>
      <description>&lt;P&gt;I confirm you&amp;nbsp;&lt;SPAN&gt;Splunk_TA_nix has been deprecated (I remember having received an email from Splunk about this).&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Anyway it doesn't mean it will stop working &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;About your issue you probably don't receive any log because most of the inputs are disabled by default. What I would suggest you to do is to copy the ../default/inputs.conf in .../local/inputs.conf and then modify it to enable the scripted input OR the monitor stanza related to linux_secure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Edoardo&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 16:39:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571696#M199214</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-10-20T16:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571762#M199241</link>
      <description>&lt;P&gt;About the obsoleteness - sorry, my bad, I mistaken one app with another and quoted something wrongly. Forget it.&lt;/P&gt;&lt;P&gt;About the inputs - how are you receiving (or want to receive) the logs? Directly on the splunk server? On HF? On UF?&lt;/P&gt;&lt;P&gt;In general - creating proper inputs.conf stanzas in $SPLUNK_HOME/etc/apps/Splunk_TA_nix/local/inputs.conf and restarting the splunk component responsible for reading the logs should suffice.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 07:11:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571762#M199241</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-10-21T07:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571925#M199296</link>
      <description>&lt;P&gt;No worries, it's hard to keep everything straight in splunk.&lt;/P&gt;&lt;P&gt;So it wasn't a problem with the config. It was just IT Essentials Learn leading me down the wrong path. It seems to me that linux_secure has been deprecated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to get the results I need using a different search which I will post shortly.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571925#M199296</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-21T22:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search for sudo (linux_secure does not exist?)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571926#M199297</link>
      <description>&lt;P&gt;IT Essentials Learn App led me down the wrong path. This is the search I am using which appears to work just fine. I think linux_secure has been deprecated seeing as it does not show up anywhere in the default config files (and these list the default sourcetype for each source so clearly it's no longer being used as a default sourcetype with the unix add on).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="*" host="*" source="/var/log/auth.log" tag="authentication" process="sudo" tag="success"
| table _time host user source process tag _raw&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 22:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-for-sudo-linux-secure-does-not-exist/m-p/571926#M199297</guid>
      <dc:creator>jackjack</dc:creator>
      <dc:date>2021-10-21T22:19:03Z</dc:date>
    </item>
  </channel>
</rss>

