2013-05-09 03:40:02 +00:00
|
|
|
# Splunk Search in Clojure
|
2013-05-08 21:34:05 +00:00
|
|
|
|
2013-05-09 03:34:51 +00:00
|
|
|
A Clojure command line program that enables simple search access to a
|
|
|
|
splunk utility.
|
2013-05-08 21:34:05 +00:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2013-05-09 03:34:51 +00:00
|
|
|
This is a bit tricky because this program relies on both the Splunk
|
|
|
|
Java SDK, which is not in Clojure or Maven repos, and the Splunk Java
|
|
|
|
SDK's Command utility class. You'll have to download the Splunk Java
|
|
|
|
SDK yourself and install the Splunk JAR file. You'll also have to
|
|
|
|
create, from the root of this project directory, resources/com/splunk,
|
|
|
|
and deposit Command.class (which can be found in the SDK's tree
|
|
|
|
somewhere) in the newly created directory.
|
|
|
|
|
|
|
|
I used lein localrepo to install the Splunk JAR file. It seems to
|
|
|
|
have worked for me.
|
|
|
|
|
|
|
|
Once all that's done, *and* you've got an instance of Splunk up at
|
|
|
|
running, *and* you've successfully configure your .splunkrc file, you
|
|
|
|
can try:
|
|
|
|
|
|
|
|
lein run 'search <your search here>'
|
2013-05-08 21:34:05 +00:00
|
|
|
|
|
|
|
## License
|
|
|
|
|
2013-05-09 03:34:51 +00:00
|
|
|
Copyright © 2013 Elf M. Sternberg
|
2013-05-08 21:34:05 +00:00
|
|
|
|
2013-05-09 03:34:51 +00:00
|
|
|
Distributed under the Apache Public License, under the same terms as
|
|
|
|
other Splunk software.
|