Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

parselogs

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parselogs

  • 0.0.8
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

The Parselogs cli tool

A simple log parser that searches a given string over a period of days and handles compressed files

Installation

gem install parselogs

Help output

SYNOPSIS

parselogs [global options] command [command options] [files...]

GLOBAL OPTIONS

-d, --days=days     - number of days back to search (default: 1)
--help              - Show this message
-s, --search=string - the string you are searching for (default: none)
--version

COMMANDS

all  - Search all logs from locations provided
help - Shows a list of commands or help for one command

Sample Usage

parselogs --days 30 --search ctsimpson all /var/log/syslog*

Mulitple File Locations

Just separate out multiple folder locations as arguments at the end of the command

parselogs -d 60 -s ctsimpson all /var/log/*.log /tmp/*.log

FAQs

Package last updated on 24 Apr 2013

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