<?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: Can I force Splunk to drp core in a specific location? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30866#M18095</link>
    <description>&lt;P&gt;Nice tip, thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 18 Aug 2010 19:19:28 GMT</pubDate>
    <dc:creator>Branden</dc:creator>
    <dc:date>2010-08-18T19:19:28Z</dc:date>
    <item>
      <title>Can I force Splunk to drp core in a specific location?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30861#M18090</link>
      <description>&lt;P&gt;Is there a way to specify an alternate location for a Splunk forwarder to do its Splunk crash dumps? &lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 00:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30861#M18090</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-08-17T00:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I force Splunk to drp core in a specific location?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30862#M18091</link>
      <description>&lt;P&gt;I asked Splunk tech support this very question. They told me that Splunk will dump its core wherever the operating system specifies.&lt;/P&gt;

&lt;P&gt;One recommendation someone had was to write a wrapper around the splunk binary. On our AIX system, it looks like this:&lt;/P&gt;

&lt;P&gt;splunk.sh: &lt;/P&gt;

&lt;P&gt;#!/bin/ksh&lt;/P&gt;

&lt;P&gt;ulimit -c 0            #disable core dumps&lt;/P&gt;

&lt;P&gt;exec /splunk/bin/splunk $1&lt;/P&gt;

&lt;P&gt;The ulimit -c 0 option tells the operating system not to make a core dump. (Technically, it creates a core dump of 0 bytes in size, but it never seems to make an actual core file).&lt;/P&gt;

&lt;P&gt;So when you start Splunk, you'd do: /splunk/bin/splunk.sh start &lt;/P&gt;

&lt;P&gt;(Note: because of the $1, this only works for commands that have one parameter.)&lt;/P&gt;

&lt;P&gt;The other option was to rename the splunk binary to splunk_real, then call the above shell script "splunk". That option didn't sit well with me, however. &lt;/P&gt;

&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 00:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30862#M18091</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2010-08-17T00:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I force Splunk to drp core in a specific location?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30863#M18092</link>
      <description>&lt;P&gt;Yes, this is a function of the OS. In solaris, you use coreadm to instruct the system where to place core dump files. In the few versions of linux that I know anything about, it's a sysctl. You'll add, say, &lt;CODE&gt;kernel.core_pattern=/var/core/core_%h_%e_%u_%g_%t_%p&lt;/CODE&gt; to /etc/sysctl.conf and reboot.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2010 01:05:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30863#M18092</guid>
      <dc:creator>pde</dc:creator>
      <dc:date>2010-08-17T01:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can I force Splunk to drp core in a specific location?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30864#M18093</link>
      <description>&lt;P&gt;No. There is no way to tell splunk where to place the crash*.log files.
You can control the location of some other log files from: $SPLUNK_HOME/etc/log.cfg 
 More at: &lt;A href="http://www.splunk.com/base/Documentation/latest/Admin/Splunklogfiles" rel="nofollow"&gt;http://www.splunk.com/base/Documentation/latest/Admin/Splunklogfiles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 00:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30864#M18093</guid>
      <dc:creator>mzax</dc:creator>
      <dc:date>2010-08-18T00:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: Can I force Splunk to drp core in a specific location?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30865#M18094</link>
      <description>&lt;P&gt;You can have your script pass all parameters by just changing &lt;CODE&gt;$1&lt;/CODE&gt; to &lt;CODE&gt;$*&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 03:47:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30865#M18094</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-18T03:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Can I force Splunk to drp core in a specific location?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30866#M18095</link>
      <description>&lt;P&gt;Nice tip, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Aug 2010 19:19:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Can-I-force-Splunk-to-drp-core-in-a-specific-location/m-p/30866#M18095</guid>
      <dc:creator>Branden</dc:creator>
      <dc:date>2010-08-18T19:19:28Z</dc:date>
    </item>
  </channel>
</rss>

