<?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 troubleshoot if splunk is down in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405977#M117361</link>
    <description>&lt;P&gt;Hello Azeemering thank you for your response,when i try to re start splunk it fails to do and give a message about splunk.pid file&lt;/P&gt;

&lt;P&gt;I go to  /opt/splunk/var/run/splunk/splunk.pid and remove it manually to re start splunk.&lt;/P&gt;

&lt;P&gt;how to overcome this problem and is there a way to do automatically other than doing manually deleting it&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jul 2018 15:31:05 GMT</pubDate>
    <dc:creator>vrmandadi</dc:creator>
    <dc:date>2018-07-05T15:31:05Z</dc:date>
    <item>
      <title>How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405974#M117358</link>
      <description>&lt;P&gt;one of our search head is down ,and not able to log in into it,what is the quick way to fix it and on which component of splunk this troubleshooting needs to be done&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 18:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405974#M117358</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-06-27T18:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405975#M117359</link>
      <description>&lt;P&gt;You can't log into Splunk, or you can log into the search head machine? Is it working still for people that have already logged in?&lt;/P&gt;

&lt;P&gt;If it is just Splunk that you can't log in, get on the search head machine (command line if linux, windows UI if windows), and see if the process is running (you can do a &lt;CODE&gt;splunk status&lt;/CODE&gt; if you want for that). If it is running, then go check the &lt;CODE&gt;$SPLUNK_HOME/var/log/splunk/splunkd.log&lt;/CODE&gt; file for errors.&lt;/P&gt;

&lt;P&gt;If you can't log onto the search head machine (not in Splunk), you will have to get access.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 18:51:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405975#M117359</guid>
      <dc:creator>cpetterborg</dc:creator>
      <dc:date>2018-06-27T18:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405976#M117360</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Troubleshooting/Whatsinhere"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/Troubleshooting/Whatsinhere&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Splunk start --debug ( do not leave it running like this whe all is normal again)&lt;/P&gt;

&lt;P&gt;Splunk crashed are often because of low memory.&lt;BR /&gt;
Check if the number of open file descriptors and max user processes are sufficient.&lt;BR /&gt;
Check if you have enough disk space.&lt;BR /&gt;
See if there is a crash*log file For example crash-2018-06-27-20:57:26.log&lt;/P&gt;

&lt;P&gt;Make note of the time when the crash occured. Check the splunkd_stderr.log&lt;BR /&gt;
Check the other logs at that time what splunk was doing:&lt;/P&gt;

&lt;P&gt;audit.log&lt;BR /&gt;
splunkd.log&lt;BR /&gt;
metrics.log&lt;BR /&gt;
web*.log&lt;/P&gt;

&lt;P&gt;Check:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd_crash_log | stats count by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd loader message=*xml
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Check if a user did some ridiculous search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit action="search" (id=* OR search_id=*) | eval user=if(user=="n/a",null(),user) | stats max(total_run_time) 
as total_run_time first(user) as user by search_id | stats count perc95(total_run_time) median(total_run_time) by user
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Jun 2018 19:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405976#M117360</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2018-06-27T19:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405977#M117361</link>
      <description>&lt;P&gt;Hello Azeemering thank you for your response,when i try to re start splunk it fails to do and give a message about splunk.pid file&lt;/P&gt;

&lt;P&gt;I go to  /opt/splunk/var/run/splunk/splunk.pid and remove it manually to re start splunk.&lt;/P&gt;

&lt;P&gt;how to overcome this problem and is there a way to do automatically other than doing manually deleting it&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:31:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405977#M117361</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-07-05T15:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405978#M117362</link>
      <description>&lt;P&gt;Hello cpetterborg,&lt;/P&gt;

&lt;P&gt;I have problem doing a start as it says error reading pid file&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405978#M117362</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-07-05T15:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405979#M117363</link>
      <description>&lt;P&gt;Run a health check on your MC.  Most Search Head crashes are do to low RAM, which the Health Check validates.  THP should be off and if it isn't, this causes inefficient RAM usage.  The Health Check will note this, too.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:53:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405979#M117363</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-05T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405980#M117364</link>
      <description>&lt;P&gt;I have a problem with pid file &lt;BR /&gt;
there was a pid file splunk.pid under /opt/splunk/var/run/splunk/splunk.pid&lt;BR /&gt;
that needed to be removed and then done a restart.&lt;/P&gt;

&lt;P&gt;What is reason for this and how can it be overcome&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 16:07:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405980#M117364</guid>
      <dc:creator>vrmandadi</dc:creator>
      <dc:date>2018-07-05T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405981#M117365</link>
      <description>&lt;P&gt;See: &lt;A href="https://answers.splunk.com/answers/172058/splunk-is-not-starting-due-to-presence-of-pid-file.html"&gt;https://answers.splunk.com/answers/172058/splunk-is-not-starting-due-to-presence-of-pid-file.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 13:22:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405981#M117365</guid>
      <dc:creator>Azeemering</dc:creator>
      <dc:date>2018-07-19T13:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to troubleshoot if splunk is down</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405982#M117366</link>
      <description>&lt;P&gt;The pid file is created when Splunk starts to do several things, chief among those, a foolproof way to provide evidence of a crash on last run.  It normally goes like this on startup.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Check for pid file
   if present, there was a crash, do some additional diagnosting/logging, then delete it.
Start splunkd, write pid into pid file.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What can happen is that the user that previously ran Splunk was &lt;CODE&gt;root&lt;/CODE&gt; and so the pid file was owned by &lt;CODE&gt;root&lt;/CODE&gt; and splunk crashed.  Now you are coming in as some other non-root user and you do not have the permissions that allow you to delete/overwrite this file so Splunk cannot start.  So you have 2 solutions:&lt;/P&gt;

&lt;P&gt;ALWAYS start splunk as the same user, preferably not &lt;CODE&gt;root&lt;/CODE&gt;.&lt;BR /&gt;
Prevent Splunk from crashing.&lt;/P&gt;

&lt;P&gt;The former is very easy, the latter...&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jul 2018 14:09:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-troubleshoot-if-splunk-is-down/m-p/405982#M117366</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-19T14:09:17Z</dc:date>
    </item>
  </channel>
</rss>

