New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslogs

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslogs

A command-line tool for searching logs stored in elasticsearch.

  • 0.1.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

eslogs is a command-line tool for searching logs stored in elasticsearch.

Pass it a query, and it outputs the matching log lines, as if you had run cat on the log file.

Installation

  • npm install eslogs -g
  • Edit ~/.eslogs.json
  • Update values to match your elasticsearch instance and index mappings
  • eslogs --help

Usage

eslogs index [-q query | ...] [options]
  
  -q query           A free-text search
  
  Options:
  -s n               Return n latest results. Higher sizes take longer. Default 100.
  -h name            Only show logs from hosts that match this name.
  
  Examples:
  eslogs logstash-*
  eslogs logstash-* -q error
  eslogs logstash-* -q "192.168.1.100"
  eslogs logstash-* -q "failed with error"
  eslogs logstash-* -q error -h c14714
  eslogs logstash-* -q error -h 192.168.1.1
  eslogs logstash-* -q error -s 1000 | less -S
  watch eslogs logstash-* error -s 30

Help

File a github issue if you are having trouble.

Keywords

FAQs

Package last updated on 28 Jan 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc