Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 128951 - net-analyzer(?)/splunk - the search engine for IT data
Summary: net-analyzer(?)/splunk - the search engine for IT data
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Default Assignee for New Packages
URL: http://www.splunk.com/
Whiteboard: sunrise suggested
Keywords: EBUILD
: 181013 331007 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-05 12:17 UTC by m4chine
Modified: 2014-10-13 00:18 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Splunk 2.2.3-18173 ebuild (splunk-2.2.3.ebuild,2.12 KB, text/plain)
2007-05-21 20:15 UTC, Bismark
Details
Revised ebuild (splunk-3.4.5.ebuild,1.34 KB, text/plain)
2009-02-05 14:45 UTC, Marshall McMullen
Details
Suggested inputs.conf config file (inputs.conf,135 bytes, text/plain)
2009-02-05 14:49 UTC, Marshall McMullen
Details
Suggested props.conf file (props.conf,1.37 KB, text/plain)
2009-02-05 14:51 UTC, Marshall McMullen
Details
Ebuild for Splunk 4.1.2-79191 (splunk-4.1.2.ebuild,1.22 KB, text/plain)
2010-05-12 10:51 UTC, Dan Carley
Details
splunk-4.2.1.98164.ebuild (splunk-4.2.1.98164.ebuild,1.63 KB, text/plain)
2011-05-21 01:01 UTC, David Butler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m4chine 2006-04-05 12:17:26 UTC
Splunk is search software that indexes and links together ALL the IT data generated by ANY system, application or device making it possible to search and navigate your running IT infrastructure.

Is it possible to get a ebuild for this app? I'm willing to help in any fashion. Thanks.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-04-07 07:48:33 UTC
No progress here for 1 year; closing WONTFIX. Feel free to reopen with an ebuild.
Comment 2 Bismark 2007-05-21 20:15:17 UTC
Created attachment 119923 [details]
Splunk 2.2.3-18173 ebuild

My first ebuild so it is not the cleanest.  The LICENSE type needs to be changed and the whole thing could probably be made a little cleaner.  Overall though it lets you install\uninstall Splunk.

Includes a basic init script too.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-06-05 22:12:19 UTC
*** Bug 181013 has been marked as a duplicate of this bug. ***
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-06-05 22:13:06 UTC
Reopen.
Comment 6 Marshall McMullen 2009-02-05 14:45:54 UTC
Created attachment 181030 [details]
Revised ebuild

I've created a revised version of this ebuild that addresses some of the feedback received in the forums on the original ebuild provided. Plus, it uses the most recently available version of splunk.  There are still several limitations/problems with this ebuild, most notable is that it installs copies of python, bzip, etc. into /opt/splunk/bin instead of using system ones. Not sure of the best way to handle this. However, this ebuild works great for me.
Comment 7 Marshall McMullen 2009-02-05 14:49:14 UTC
Created attachment 181032 [details]
Suggested inputs.conf config file

This is the config file I use to provide a built-in monitoring of /var/log out of the box once installed. The only change required is to set the hostname of the logserver machine (replace FIXME with your hostname). This is just used in cases where splunk can't parse the hostname from the logfile.
Comment 8 Marshall McMullen 2009-02-05 14:51:15 UTC
Created attachment 181034 [details]
Suggested props.conf file

This file should be dropped into the files directory for the ebuild to provide a basic props setup. I wrote this file to deal with splunk's inability to correctly parse out the hostnames in my situation with many hosts sending their logs to one central logserver. Customize or remove to taste...
Comment 9 Marshall McMullen 2009-02-05 14:51:54 UTC
(In reply to comment #7)
> Created an attachment (id=181032) [edit]
> Suggested inputs.conf config file
> 
> This is the config file I use to provide a built-in monitoring of /var/log out
> of the box once installed. The only change required is to set the hostname of
> the logserver machine (replace FIXME with your hostname). This is just used in
> cases where splunk can't parse the hostname from the logfile.
> 

This file should also be placed in the 'files' directory for the ebuild to install this default configuration.
Comment 10 Dan Coats 2009-04-30 18:13:42 UTC
what about the init script have you done that already? The ebuild does not work as is without it..
Comment 11 Dan Coats 2009-04-30 18:22:26 UTC
nevermind sorry, I obviously had not even extracted it and read the README in /etc/init.d but the fact remains the ebuild should be noted accordingly.
Comment 12 Marshall McMullen 2009-05-09 05:35:32 UTC
(In reply to comment #10)
> what about the init script have you done that already? The ebuild does not work
> as is without it..
> 

init script should be pretty simple, e.g.:

#!/sbin/runscript

depend() {
   after logger
}

start() {
   ebegin "Starting Splunk"
   /opt/splunk/bin/splunk start
   eend $?
}

stop() {
   ebegin "Stopping Splunk"
   /opt/splunk/bin/splunk stop
   eend $?
}

status() {
   /opt/splunk/bin/splunk status
   eend $?
}
Comment 13 Peter Abrahamsen 2010-04-16 00:42:47 UTC
Splunk is now at 4.1. I'd love to see this bug get some attention.
Comment 14 Dan Carley 2010-05-12 10:51:26 UTC
Created attachment 231213 [details]
Ebuild for Splunk 4.1.2-79191

Here's a slightly revised ebuild for Splunk 4.1

Handles 32bit and 64bit architectures more cleanly. Doesn't use the custom config files, just due to taste. Same basic init script as noted by Marshall. Requires a corresponding license file from the package.

Working fine on a number of machines here. Feedback would be good.
Comment 15 Peter Volkov (RETIRED) gentoo-dev 2010-05-12 19:17:38 UTC
Guys, netmon team is understaffed at the moment, so I suggest you to submit ebuild into sunrise overlay: http://overlays.gentoo.org/proj/sunrise/

Dan, some comments to ebuild:
1. Please, move 79191 into PV. Just name ebuild plunk-4.1.2.79191.ebuild and use versionator.eclass (or bash variable substitutions) to get 79191.
2. Following code:
        # Adjust permissions on executables
	cd "${D}/opt/${PN}/bin"
	for b in `ls .`; do
		fperms 755 "${b}" || die "fperms failed on ${b}"
	done
it much better to substitute with find:

find "${D}/opt/${PN}/bin" -print0 | xargs -0 fperms 755 

3. Does /opt/${PN}/bin/splunk start --accept-license requires user intervention? Is it possible to avoid running of this command?
Comment 16 Tobias Scherbaum (RETIRED) gentoo-dev 2011-04-13 14:06:39 UTC
*** Bug 331007 has been marked as a duplicate of this bug. ***
Comment 17 David Butler 2011-05-21 01:01:03 UTC
Created attachment 274171 [details]
splunk-4.2.1.98164.ebuild

I updated the ebuild for my own purposes, decided to pass it along

Notes:
1. In my overlay, this is in the app-admin category, where I believe it should belong as this application does not do any kind of passive network monitoring.
2. The ebuild has the possibility of blocking in pkg_postinst if there previously existed annother installation of splunk, this could be fixed by piping yes to the splunk start command
3. I have not included any default configuration files.
Comment 18 Leho Kraav (:macmaN @lkraav) 2011-09-24 19:25:47 UTC
anyone done anything with the later releases? latest currently seems to be splunk-4.2.3-105575-Linux-i686.tgz.