Giter Club home page Giter Club logo

bump's Introduction

#bump

A simple tool to automate clicking the "_bump" button to a Splunk instance. bump clears the Splunk Web cache and forces all the static files (.js, .css etc) to be loaded again.

Version 0.1

#Install bump only requires the Requests library. You can install it manually or by executing the following command:

pip install -r requirements.txt

#Usage

As with any python script you can execute it in several ways

###Run the script directly: You can modify the default values for the url, username and password by editing bump.py and run the script. You don't have to use command line arguments. If you do, the command line arguments will override the default.

//Will use the default values
python bump.py

###Run the script with command line arguments You can pass arguments for the url, the username and or the password. If you don't specify a specific argument the default value will be used.

//Use given arguments
python bump.py -l https://localhost:8000/ -u admin -p changeme

//Use given arguments
python bump.py --url https://localhost:8000/ --username admin --password changeme

//We don't specify username, will use the default value
python bump.py -l https://localhost:8000 -p secret

###Run the script in Unix

chmod +x bump.py
./bump.py

###Add it to your PATH

cd ~/bin/
ln -s ~/your/path/bump.py

#Alternative There is a way to configure Splunk to not use the cache at all. This will increase the loading time of any page significantly. In order to enable this option, edit your web.conf file

vim /Applications/Splunk/etc/system/default/web.conf

and change the following values

js_no_cache = True
cacheBytesLimit = 0
cacheEntriesLimit = 0

#License bump has a GNU General Public License v3.0 license. Please use it, improve it and contribute back to this simple tool.

bump's People

Contributors

kospol avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.