Coder Social home page Coder Social logo

jamesjj / http-deleter Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 9 KB

Send HTTP DELETE requests to URLs parsed with strftime (e.g. Elasticsearch curator, harshly simplified)

License: MIT License

Dockerfile 15.40% Go 69.69% Shell 14.91%
elasticsearch curator http-delete

http-deleter's Introduction

HTTP Deleter

Sends HTTP DELETE requests to a list of URLs

Each URL is parsed with STRFTIME, so can include placeholders for date or time e.g. http://elasticsearch.example.com:9200/my_index-%Y.%m.%d

There are various options to influence time.

(This is a potentially simpler replacement for Elasticsearch curator)

  -backcount int
    	Iterate back in time <backcount> times 
    	[HTTP_DELETER_BACKCOUNT] (default 30)
    	
  -backstep int
    	Each <backcount> iteration goes back in time <backstep> hours 
    	[HTTP_DELETER_BACKSTEP] (default 24)
    	
  -concurrent int
    	Number of HTTP requests to send in parallel 
    	[HTTP_DELETER_CONCURRENT] (default 2)
    	
  -dryrun
    	Show parsed target list without sending HTTP Delete request 
    	[HTTP_DELETER_DRYRUN]
    	
  -httptimeout int
    	HTTP request timeout in seconds 
    	[HTTP_DELETER_HTTPTIMEOUT] (default 30)
    	
  -loopdelay int
    	If specified: run continuously with this number of hours between actions.
    	If unspecified: run once and exit 
    	[HTTP_DELETER_LOOPDELAY]
    	
  -startupdelay int
    	Seconds to wait before doing anything (used to facilitate easier testing) 
    	[HTTP_DELETER_STARTUPDELAY]
    	
  -timeoffset int
    	STRFTIME will be <utc-now> minus this number of hours 
    	[HTTP_DELETER_TIMEOFFSET] (default 8760)
    	
  -urls string
    	JSON array of URLs to DELETE. Each will be parsed with STRFTIME 
    	[HTTP_DELETER_URLS]
    	
    	For example:
    	[ "http://host.name:9200/my_index-%Y.%m.%d", "http://other.name:9200/some_index-%Y.%m.%d" ]

http-deleter's People

Contributors

jamesjj avatar

Stargazers

 avatar

Watchers

 avatar  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.