Project

log_view

0.0
No commit activity in last 3 years
No release in over 3 years
log_view is a parallel monitoring logs gem who uses ssh connection to make tail on described files in multiple servers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 3.1.2
~> 10.3.0
~> 2.14.1

Runtime

~> 2.8.0
 Project Readme

LogView Code Climate Gem Version

Installation

Execute

  $ gem install log_view

Getting Started

  1. Execute $ log_view

The software will create a .log_view.yml file in your home

  1. Configure the .log_view.yml file as the described exemple in the .log_view.yml file
project_name:
  user: my_ssh_user
  password: my_ssh_password
  servers:
    - some_name@some_server.com
  files:
    - "/log/dir/my_log_file.log"
  1. Run:
$ log_view

This step will show your configured projects.

Use the described options in the output of third step to perform your

$ log_view <project-name> <options>

Help

Execute command line without parameters

$ log_view

Basic Commands

log_view gem offers four commands

  1. --split-log

The split-log option

This command will separate log by file and server

```sh
$ log_view <project_name> --split-log
```
  1. --grep

The grep option

This is the basic grep function.

You should write like:

```sh
$ log_view <project_name> --grep <grep_string>
```
  1. --grep-v

Selected lines are those not matching any of the specified patterns. (grep -v description)

You should write like:

```sh
$ log_view <project_name> --grep-v <string_to_not_match>
```
  1. -s

The choose server option

This command allow you to choose a single server to monitoring

```sh
$ log_view <project_name> -s <server name>
```

You can write any single parts of server's name. Like this exemple:

```yaml
project_name1:
user: a
password: b
servers: 
  - test-server1
  - test-server2
files:
  - test-file1
  - test-file2
```
```sh
$ log_view project_name1 -s server1
```
  1. -f

The choose file option

This command allow you to choose a single file to monitoring

```sh
$ log_view <project_name> -f <file name>
```

You can write any single parts of file's name. Like this exemple:

```yaml
project_name1:
user: a
password: b
servers: 
  - test-server1
  - test-server2
files:
  - test-file1
  - test-file2
```
```sh
$ log_view project_name1 -f file1
```
  1. -n

The -n argument display the latest 'n' input lines

You should write like this:

```sh
$ log_view project_name1 -n <number_of_lines>
```