This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * This fixes the issue where the tab focus looks weird. | |
| */ | |
| .nav-tabs > li > a:focus { | |
| box-shadow: none !important; | |
| } | |
| .nav-tabs > li:focus-within:after { | |
| box-shadow: inset -2px 2px 3px rgba(82, 168, 236, .5); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import splunk.auth | |
| import splunk.rest | |
| import splunk.search | |
| import json | |
| import time | |
| # Authenticate | |
| session_key = splunk.auth.getSessionKey(username='admin', password='changeme') | |
| search_to_run = "Errors in the last 24 hours" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import splunk.auth | |
| import splunk.rest | |
| import json | |
| import hashlib | |
| # Authenticate | |
| session_key = splunk.auth.getSessionKey(username='admin', password='changeme') | |
| # Read in the file | |
| with open('password.txt', 'r') as myfile: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This is a base-class for writing custom external lookups. | |
| This is licensed under the Apache License Version 2.0 | |
| See https://www.apache.org/licenses/LICENSE-2.0.html | |
| To use this, you will need to: | |
| 1) A lookup command script that implements from CustomLookup | |
| 2) Create a transforms.conf that declares your lookup command |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <entitygroups> | |
| <entitygroup name="ZombiesAll"> | |
| <entity name="zombieBoe"/> | |
| <entity name="zombieJoe"/> | |
| <entity name="zombieSteve"/> | |
| <entity name="zombieTomClark"/> | |
| <entity name="zombieMoe"/> | |
| <entity name="zombieYo"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import splunk.auth | |
| import splunk.rest | |
| import json | |
| # Authenticate | |
| session_key = splunk.auth.getSessionKey(username='admin', password='changeme') | |
| # Get lookup transforms | |
| server_response, server_content = splunk.rest.simpleRequest('/services/data/transforms/lookups?count=0&output_mode=json', sessionKey=session_key) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This Python script loads test cases that were generated from the SeleniumIDE and executes them | |
| against a running Splunk install. The purpose of this script is to make it possible to run tests | |
| against Splunk without having to write code using WebDriver directly. Instead, the intent is that | |
| testers write tests in the Selenium IDE GUI. This ought to make tests easier to write and maintain. | |
| This is release under the Apache 2.0 Licence: | |
| https://www.apache.org/licenses/LICENSE-2.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| mogrify -resize 50% "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This view is intended to be used as a base class for simpleXML setup views. This class is | |
| * intended to make creation of a setup view easier by: | |
| * | |
| * 1) Providing a mechanism for setting the app as configured so that users aren't redirected through setup again. | |
| * 2) Providing a means for permission checking so that you can ensure that the user has admin_all_objects | |
| * | |
| * To use this class, you will need to do the following: | |
| * | |
| * 1) Make your view class sub-class "SetupView" (the class providing in this file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This includes a helper class (named RestHandler) that makes implementing a custom REST handler in Splunk very easy. | |
| This is licensed under the Apache License Version 2.0 | |
| See https://www.apache.org/licenses/LICENSE-2.0.html | |
| To use this, you will need to: | |
| 1) Define a restmap.conf and declare the handler | |
| 2) Define the Python code of the REST handler |