<?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: How to edit inputs.conf to search a log file for a specific thread on all servers? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267880#M51379</link>
    <description>&lt;P&gt;First you have to create an inputs app for this... maybe calling it "MyOrg_MBAM_Inputs".&lt;/P&gt;

&lt;P&gt;Then you have to put an inputs.conf in the default directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\ProgramData\Malwarebytes\MBAMService\logs\MBAMSERVICE.LOG]
index=mbam
sourcetype=mbamservicelog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Next you need to create the "mbam" index on your indexer(s)&lt;/P&gt;

&lt;P&gt;After that, you need to deploy the MyOrg_MBAM_Inputs app to your hosts via deployment server or other means.&lt;/P&gt;

&lt;P&gt;Finally, you can create a search that runs every minute which looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     index=mbam sourcetype=mbamservicelog _index_earliest=-1m@m ActionTaken=ARW_ACTION_KILL_THREAD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, searching for this every minute is not recommended as there is usually a lag between when the event happens and when it will make it to your indexers.  Therefore I would advise running the search with a "trailing" 5 minute window like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=mbam sourcetype=mbamservicelog earliest=-10m@m latest=-5m@m ActionTaken=ARW_ACTION_KILL_THREAD 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then run this search every 5 minutes.&lt;/P&gt;

&lt;P&gt;Even better for your performance as a whole, would be to run this every 15 minutes and modify the search as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=mbam sourcetype=mbamservicelog earliest=-15m@m ActionTaken=ARW_ACTION_KILL_THREAD 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers and good luck!&lt;/P&gt;

&lt;P&gt;Here's some links you might be interested in:&lt;/P&gt;

&lt;P&gt;inputs.conf &amp;lt;- input settings&lt;BR /&gt;
savedsearches.conf &amp;lt;- saved searches and alerting settings&lt;BR /&gt;
serverclass.conf &amp;lt;- deployment server settings&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 12:05:22 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2020-09-29T12:05:22Z</dc:date>
    <item>
      <title>How to edit inputs.conf to search a log file for a specific thread on all servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267879#M51378</link>
      <description>&lt;P&gt;i need help with adding this to my inputs.conf file on Splunk forwarder servers. i need Splunk to search this specific log file every 60 seconds and if a specific thread is found, to notify ASAP&lt;/P&gt;

&lt;P&gt;Location of Log File = C:\ProgramData\Malwarebytes\MBAMService\logs\MBAMSERVICE.LOG&lt;/P&gt;

&lt;P&gt;specific thread = ActionTaken=ARW_ACTION_KILL_THREAD&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:02:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267879#M51378</guid>
      <dc:creator>rsingh</dc:creator>
      <dc:date>2020-09-29T12:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to search a log file for a specific thread on all servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267880#M51379</link>
      <description>&lt;P&gt;First you have to create an inputs app for this... maybe calling it "MyOrg_MBAM_Inputs".&lt;/P&gt;

&lt;P&gt;Then you have to put an inputs.conf in the default directory:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://C:\ProgramData\Malwarebytes\MBAMService\logs\MBAMSERVICE.LOG]
index=mbam
sourcetype=mbamservicelog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Next you need to create the "mbam" index on your indexer(s)&lt;/P&gt;

&lt;P&gt;After that, you need to deploy the MyOrg_MBAM_Inputs app to your hosts via deployment server or other means.&lt;/P&gt;

&lt;P&gt;Finally, you can create a search that runs every minute which looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;     index=mbam sourcetype=mbamservicelog _index_earliest=-1m@m ActionTaken=ARW_ACTION_KILL_THREAD
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, searching for this every minute is not recommended as there is usually a lag between when the event happens and when it will make it to your indexers.  Therefore I would advise running the search with a "trailing" 5 minute window like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=mbam sourcetype=mbamservicelog earliest=-10m@m latest=-5m@m ActionTaken=ARW_ACTION_KILL_THREAD 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and then run this search every 5 minutes.&lt;/P&gt;

&lt;P&gt;Even better for your performance as a whole, would be to run this every 15 minutes and modify the search as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    index=mbam sourcetype=mbamservicelog earliest=-15m@m ActionTaken=ARW_ACTION_KILL_THREAD 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Cheers and good luck!&lt;/P&gt;

&lt;P&gt;Here's some links you might be interested in:&lt;/P&gt;

&lt;P&gt;inputs.conf &amp;lt;- input settings&lt;BR /&gt;
savedsearches.conf &amp;lt;- saved searches and alerting settings&lt;BR /&gt;
serverclass.conf &amp;lt;- deployment server settings&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 12:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267880#M51379</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2020-09-29T12:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to search a log file for a specific thread on all servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267881#M51380</link>
      <description>&lt;P&gt;thanks jkat54 - i am not using a deployment server, splunk is a new setup so once i configure the correct input.conf file i will use something like xcopy to push to local servers&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 19:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267881#M51380</guid>
      <dc:creator>rsingh</dc:creator>
      <dc:date>2016-12-07T19:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to search a log file for a specific thread on all servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267882#M51381</link>
      <description>&lt;P&gt;ok but you will need to restart the forwarder too, which requires winrm or wmi queries to be able to restart the splunkforwarder service via scripting&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 19:28:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267882#M51381</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-12-07T19:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to search a log file for a specific thread on all servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267883#M51382</link>
      <description>&lt;P&gt;ok got it thanks&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 19:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267883#M51382</guid>
      <dc:creator>rsingh</dc:creator>
      <dc:date>2016-12-07T19:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to edit inputs.conf to search a log file for a specific thread on all servers?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267884#M51383</link>
      <description>&lt;P&gt;this is how i placed it in my PC input file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = NPC25


[monitor://C:\ProgramData\Malwarebytes\MBAMService\logs\MBAMSERVICE.LOG]
index=mbam
sourcetype=mbamservicelog
index=mbam sourcetype=mbamservicelog _index_earliest=-5m@m ActionTaken=ARW_ACTION_KILL_THREAD
index=mbam sourcetype=mbamservicelog earliest=-10m@m latest=-5m@m ActionTaken=ARW_ACTION_KILL_THREAD 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 13 Dec 2016 00:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-edit-inputs-conf-to-search-a-log-file-for-a-specific/m-p/267884#M51383</guid>
      <dc:creator>rsingh</dc:creator>
      <dc:date>2016-12-13T00:30:50Z</dc:date>
    </item>
  </channel>
</rss>

