<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Splunk Best Practices</title>
	<atom:link href="http://www.webadminblog.com/index.php/splunk-best-practices/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webadminblog.com</link>
	<description>Real Web Admins.  Real World Experience.</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:28:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Josh</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-754</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 12 Aug 2011 17:01:46 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-754</guid>
		<description>Garret, I&#039;m not sure what to tell you.  I wrote the app for an older version of Splunk and that dashboard module worked just fine.  It&#039;s possible that Splunk changed this in a newer version and it no longer works, but I&#039;ve tested it on our version 4.2.2, build 101277 server and it seems to be working without issue.  Have you tried talking to Splunk support?</description>
		<content:encoded><![CDATA[<p>Garret, I&#8217;m not sure what to tell you.  I wrote the app for an older version of Splunk and that dashboard module worked just fine.  It&#8217;s possible that Splunk changed this in a newer version and it no longer works, but I&#8217;ve tested it on our version 4.2.2, build 101277 server and it seems to be working without issue.  Have you tried talking to Splunk support?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Garrett Hildebrand</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-753</link>
		<dc:creator>Garrett Hildebrand</dc:creator>
		<pubDate>Mon, 08 Aug 2011 22:51:08 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-753</guid>
		<description>I downloaded and installed your Splunk Monitoring application. When I bring-up the app under the apps menu from within splunk I see the following error: 

&quot;This view has a Splunk.Module.HiddenSearch module but it is configured with no child modules to push its changes to. This represents a configuration error.&quot;

There is someone who posted on splunk answers the same error, and someone wrote back and said to comment-out line 24 and to add line 78. But that totally does not work and causes yet another error (I saw this at http://splunk-base.staging.splunk.com/answers/5672/error-on-dashboard-splunk-agent-monitoring-app ).

I have the monitoring script working okay, so it is the $SPLUNK_HOME/etc/apps/splunk_monitoring/default/data/ui/views/dashboard.xml that is apparently the problem. Suggestions?</description>
		<content:encoded><![CDATA[<p>I downloaded and installed your Splunk Monitoring application. When I bring-up the app under the apps menu from within splunk I see the following error: </p>
<p>&#8220;This view has a Splunk.Module.HiddenSearch module but it is configured with no child modules to push its changes to. This represents a configuration error.&#8221;</p>
<p>There is someone who posted on splunk answers the same error, and someone wrote back and said to comment-out line 24 and to add line 78. But that totally does not work and causes yet another error (I saw this at <a href="http://splunk-base.staging.splunk.com/answers/5672/error-on-dashboard-splunk-agent-monitoring-app" rel="nofollow">http://splunk-base.staging.splunk.com/answers/5672/error-on-dashboard-splunk-agent-monitoring-app</a> ).</p>
<p>I have the monitoring script working okay, so it is the $SPLUNK_HOME/etc/apps/splunk_monitoring/default/data/ui/views/dashboard.xml that is apparently the problem. Suggestions?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gil vidals</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-745</link>
		<dc:creator>gil vidals</dc:creator>
		<pubDate>Wed, 03 Aug 2011 03:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-745</guid>
		<description>splunk is consuming 50% of CPU when running on Windows 2008 R2 with 1 x vCPU and 6 GB of RAM. This is on a Windows server running with light forwarder mode on and sending the index to the main indexer. 

We&#039;ve even pared down the number of logs down to just a couple and the CPU is still at 50%; it seems way to high and I don&#039;t know how to fix this. Have you encountered this before?</description>
		<content:encoded><![CDATA[<p>splunk is consuming 50% of CPU when running on Windows 2008 R2 with 1 x vCPU and 6 GB of RAM. This is on a Windows server running with light forwarder mode on and sending the index to the main indexer. </p>
<p>We&#8217;ve even pared down the number of logs down to just a couple and the CPU is still at 50%; it seems way to high and I don&#8217;t know how to fix this. Have you encountered this before?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-727</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Wed, 11 May 2011 03:56:24 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-727</guid>
		<description>Erik, I have to say that I&#039;ve never run into that.  That said, I&#039;ve never actually installed the app from SplunkBase either.  You may want to try downloading the files and manually placing them in your apps directory.  The .spl files are really just .tar.gz formatted so running &quot;tar xvzf&quot; should properly decompress them.  Otherwise, I&#039;d say that Splunk support may be able to help you further.</description>
		<content:encoded><![CDATA[<p>Erik, I have to say that I&#8217;ve never run into that.  That said, I&#8217;ve never actually installed the app from SplunkBase either.  You may want to try downloading the files and manually placing them in your apps directory.  The .spl files are really just .tar.gz formatted so running &#8220;tar xvzf&#8221; should properly decompress them.  Otherwise, I&#8217;d say that Splunk support may be able to help you further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Curtis</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-726</link>
		<dc:creator>Erik Curtis</dc:creator>
		<pubDate>Fri, 06 May 2011 15:20:04 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-726</guid>
		<description>I have installed the License Usage app. After the install, I get prompted &quot;The License Usage app has not been fully configured&quot;. Clicking &quot;Continue to app setup page&quot; results in the error &quot;KeyErrir:&#039;elements&#039;.

We are using Splunk v4.2.1-98164.</description>
		<content:encoded><![CDATA[<p>I have installed the License Usage app. After the install, I get prompted &#8220;The License Usage app has not been fully configured&#8221;. Clicking &#8220;Continue to app setup page&#8221; results in the error &#8220;KeyErrir:&#8217;elements&#8217;.</p>
<p>We are using Splunk v4.2.1-98164.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-660</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Thu, 16 Sep 2010 18:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-660</guid>
		<description>Andy,

We use the Splunk deployment server so I created a deployment app under &quot;$SPLUNK_HOME/etc/deployment-apps/mybundle/default&quot;.  It contains a fields.conf file with the values:

[niappname]
INDEXED = true

[nilogname]
INDEXED = true

An indexes.conf file with the values:

[ni_dashboard]
homePath   = $SPLUNK_DB/ni_dashboard/db
coldPath   = $SPLUNK_DB/ni_dashboard/colddb
thawedPath = $SPLUNK_DB/ni_dashboard/thaweddb

A inputs.conf with the values:

# Scripted input to do a find on /opt/apps/logs
[script://$SPLUNK_HOME/etc/apps/mybundle/bin/apploglist.sh]
interval = 3600
sourcetype = dashboard_app_log_list
source = ni_dashboard
index = ni_dashboard
disabled = false

A props.conf file with the values:

# Handler for apploglist.sh &quot;dashboard_app_log_list&quot; sourcetype
[dashboard_app_log_list]
BREAK_ONLY_BEFORE = ^
TRANSFORMS-applist = apps,logs
AUTO_LINEMERGE = True
SHOULD_LINEMERGE = False

The most important part is to set up your transforms.conf with the proper regex like this:

# Add &quot;niappname&quot; field for apploglist.sh &quot;oas10g_app_log_list&quot; sourcetype
[apps]
REGEX = /opt/apps/logs/(\w+)/
FORMAT = niappname::$1
DEST_KEY = niappname
WRITE_META = True

# Add &quot;nilogname&quot; field for loglist.sh &quot;oas10g_app_log_list&quot; sourcetype
[logs]
REGEX = /opt/apps/logs/(\w+)/(\w+)\.&#124;/opt/apps/logs/(\w+)/_apps_utf8/(\w+)\.
FORMAT = nilogname::$2
DEST_KEY = nilogname
WRITE_META = True

Then you still need to create your script.  I put mine under &quot;$SPLUNK_HOME/etc/deployment-apps/mybundle/bin&quot; so it will get deployed with the deployment server.  Here is my script:

#/bin/bash

# VARIABLES
LOG_DIR=&quot;/opt/apps/logs&quot;;
DST_DIR=&quot;$SPLUNK_HOME/etc/apps/mybundle/log&quot;;

# Hostname
HOSTNAME=`uname -n`;

# Check if DST_DIR exists and if not create it
if [ ! -d ${DST_DIR} ] ; then
  mkdir ${DST_DIR};
fi

# Check if log file exists and if not create it
if [ ! -f ${DST_DIR}/${HOSTNAME}_apploglist.log ] ; then
  touch ${DST_DIR}/${HOSTNAME}_apploglist.log;
fi

# For each application directory
for i in `find $LOG_DIR -type f`
do
  # If that directory has not already been indexed
  if [ &quot;`grep $i ${DST_DIR}/${HOSTNAME}_apploglist.log`&quot; == &quot;&quot; ] ; then
    # Add it to the log file
    echo $i &gt;&gt; ${DST_DIR}/${HOSTNAME}_apploglist.log;
    # Output it to stdout
    echo $i;
  fi
done

That should do it!</description>
		<content:encoded><![CDATA[<p>Andy,</p>
<p>We use the Splunk deployment server so I created a deployment app under &#8220;$SPLUNK_HOME/etc/deployment-apps/mybundle/default&#8221;.  It contains a fields.conf file with the values:</p>
<p>[niappname]<br />
INDEXED = true</p>
<p>[nilogname]<br />
INDEXED = true</p>
<p>An indexes.conf file with the values:</p>
<p>[ni_dashboard]<br />
homePath   = $SPLUNK_DB/ni_dashboard/db<br />
coldPath   = $SPLUNK_DB/ni_dashboard/colddb<br />
thawedPath = $SPLUNK_DB/ni_dashboard/thaweddb</p>
<p>A inputs.conf with the values:</p>
<p># Scripted input to do a find on /opt/apps/logs<br />
[script://$SPLUNK_HOME/etc/apps/mybundle/bin/apploglist.sh]<br />
interval = 3600<br />
sourcetype = dashboard_app_log_list<br />
source = ni_dashboard<br />
index = ni_dashboard<br />
disabled = false</p>
<p>A props.conf file with the values:</p>
<p># Handler for apploglist.sh &#8220;dashboard_app_log_list&#8221; sourcetype<br />
[dashboard_app_log_list]<br />
BREAK_ONLY_BEFORE = ^<br />
TRANSFORMS-applist = apps,logs<br />
AUTO_LINEMERGE = True<br />
SHOULD_LINEMERGE = False</p>
<p>The most important part is to set up your transforms.conf with the proper regex like this:</p>
<p># Add &#8220;niappname&#8221; field for apploglist.sh &#8220;oas10g_app_log_list&#8221; sourcetype<br />
[apps]<br />
REGEX = /opt/apps/logs/(\w+)/<br />
FORMAT = niappname::$1<br />
DEST_KEY = niappname<br />
WRITE_META = True</p>
<p># Add &#8220;nilogname&#8221; field for loglist.sh &#8220;oas10g_app_log_list&#8221; sourcetype<br />
[logs]<br />
REGEX = /opt/apps/logs/(\w+)/(\w+)\.|/opt/apps/logs/(\w+)/_apps_utf8/(\w+)\.<br />
FORMAT = nilogname::$2<br />
DEST_KEY = nilogname<br />
WRITE_META = True</p>
<p>Then you still need to create your script.  I put mine under &#8220;$SPLUNK_HOME/etc/deployment-apps/mybundle/bin&#8221; so it will get deployed with the deployment server.  Here is my script:</p>
<p>#/bin/bash</p>
<p># VARIABLES<br />
LOG_DIR=&#8221;/opt/apps/logs&#8221;;<br />
DST_DIR=&#8221;$SPLUNK_HOME/etc/apps/mybundle/log&#8221;;</p>
<p># Hostname<br />
HOSTNAME=`uname -n`;</p>
<p># Check if DST_DIR exists and if not create it<br />
if [ ! -d ${DST_DIR} ] ; then<br />
  mkdir ${DST_DIR};<br />
fi</p>
<p># Check if log file exists and if not create it<br />
if [ ! -f ${DST_DIR}/${HOSTNAME}_apploglist.log ] ; then<br />
  touch ${DST_DIR}/${HOSTNAME}_apploglist.log;<br />
fi</p>
<p># For each application directory<br />
for i in `find $LOG_DIR -type f`<br />
do<br />
  # If that directory has not already been indexed<br />
  if [ "`grep $i ${DST_DIR}/${HOSTNAME}_apploglist.log`" == "" ] ; then<br />
    # Add it to the log file<br />
    echo $i >> ${DST_DIR}/${HOSTNAME}_apploglist.log;<br />
    # Output it to stdout<br />
    echo $i;<br />
  fi<br />
done</p>
<p>That should do it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-659</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 16 Sep 2010 17:35:22 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-659</guid>
		<description>Josh,

Thank you for taking the time to write this article and sharing your experiences.  I have a similar setup to your with all app logs being written to /logs/webapps/* .  Can you share how you configured your scripted input with your setup? Would it be possible to post the script that you use for this?

thanks so much</description>
		<content:encoded><![CDATA[<p>Josh,</p>
<p>Thank you for taking the time to write this article and sharing your experiences.  I have a similar setup to your with all app logs being written to /logs/webapps/* .  Can you share how you configured your scripted input with your setup? Would it be possible to post the script that you use for this?</p>
<p>thanks so much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-576</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Mon, 01 Mar 2010 16:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-576</guid>
		<description>Alright, I think we&#039;ve got the issues figured out with SplunkBase and you guys can download the new 4.x version of my Splunk License Usage application here:

http://www.splunkbase.com/apps/All/4.x/App/app:Splunk+License+Usage</description>
		<content:encoded><![CDATA[<p>Alright, I think we&#8217;ve got the issues figured out with SplunkBase and you guys can download the new 4.x version of my Splunk License Usage application here:</p>
<p><a href="http://www.splunkbase.com/apps/All/4.x/App/app:Splunk+License+Usage" rel="nofollow">http://www.splunkbase.com/apps/All/4.x/App/app:Splunk+License+Usage</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Josh</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-575</link>
		<dc:creator>Josh</dc:creator>
		<pubDate>Fri, 26 Feb 2010 15:30:36 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-575</guid>
		<description>Madsen/Lea,

I see exctly what you&#039;re talking about with the 4.x version of my Splunk License Usage app not showing up.   It worked fine while I was logged in to Splunkbase, but not that I&#039;m not logged in anymore, it just shows the 3.x version of the app.  I&#039;ve contacted Emma Dannin and Caleb Poterbin at Splunk support as they helped me get my app on the new Splunkbase.  I will update you once it has been made available.  Thanks!</description>
		<content:encoded><![CDATA[<p>Madsen/Lea,</p>
<p>I see exctly what you&#8217;re talking about with the 4.x version of my Splunk License Usage app not showing up.   It worked fine while I was logged in to Splunkbase, but not that I&#8217;m not logged in anymore, it just shows the 3.x version of the app.  I&#8217;ve contacted Emma Dannin and Caleb Poterbin at Splunk support as they helped me get my app on the new Splunkbase.  I will update you once it has been made available.  Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madsen</title>
		<link>http://www.webadminblog.com/index.php/splunk-best-practices/comment-page-1/#comment-574</link>
		<dc:creator>madsen</dc:creator>
		<pubDate>Fri, 26 Feb 2010 13:53:14 +0000</pubDate>
		<guid isPermaLink="false">http://webadminblog.com/?page_id=6#comment-574</guid>
		<description>Hi Josh!

A very helpful article. I&#039;m in the process of setting up splunk and was looking at you license usage script for version 3.x. On Splunkbase, however, the script is still only for version 3.x. At least I can&#039;t find it and the link you provide above takes me to the 3.x version of it.
Have to take a look at the monitoring after the weekend.
cheers,
madsen</description>
		<content:encoded><![CDATA[<p>Hi Josh!</p>
<p>A very helpful article. I&#8217;m in the process of setting up splunk and was looking at you license usage script for version 3.x. On Splunkbase, however, the script is still only for version 3.x. At least I can&#8217;t find it and the link you provide above takes me to the 3.x version of it.<br />
Have to take a look at the monitoring after the weekend.<br />
cheers,<br />
madsen</p>
]]></content:encoded>
	</item>
</channel>
</rss>

