New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

esclean

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esclean

Cleanup util for Elastic Search

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

esclean.js

Simple command line utility to cleanup ElasticSearch data, since ElasticSearch Curator doesn't work with AWS Elastic Search up to this date.

Installation

$ npm install esclean -g

Usage

$ esclean --host <ES_HOSTNAME:PORT> -i <INDEX_NAME> -d <OLDER_THAN_NUM_OF_DAYS> <command> <category>

Params overview

-host Host name and port. Defaults to localhost:9200. -i, --index Index name. Can use wildcard (*) when deleting indices. -d, --days Documents age. When deleting documents, will select all documents older than days param.

Commands overview

delete Delete documents or indices

Category overview

documents Perform command on documents indices Perform command on indices

Example

$ esclean --host my-es-host:9200 -i logs -d 7 delete documents

This will delete all documents in logs index that are older than 7 days

FAQs

Package last updated on 22 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts