node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org ¬Ľ

cxla

Build Status

npm version npm downloads

CXLA

ūüéČūüí•‚ú® Generic Log Analyzer

Prerequisites

  1. nodejs
  2. git

Installing Nodejs

  • For 64-bit
wget https://nodejs.org/dist/v5.9.0/node-v5.9.0-linux-x64.tar.xz
tar -xvf node-v5.9.0-linux-x64.tar.xz
cd node-v5.9.0-linux-x64/
  • For 32-bit
wget https://nodejs.org/dist/v4.4.0/node-v4.4.0-linux-x86.tar.xz
tar -xvf node-v4.4.0-linux-x86.tar.xz
cd node-v4.4.0-linux-x86/
  • Depending upon the architecture follow the below steps:

Add node-v5.9.0-linux-x64/bin to the system path.

1.Open ~/.bashrc in your editor

2.Type in export PATH=$PATH:/path/to/your/directory/node-v5.9.0-linux-x64/bin
3.Finally after saving the file

In terminal type source ~/.bashrc

Installation

  1. git clone https://github.com/shakdwipeea/CXLA.git

  2. Move to the directory CXLA

  3. Inside the directory

npm install
npm install -g pm2
pm2 start bin/www

OR

npm install -g nodemon
nodemon

OR

node ./bin/www
  1. Now visit localhost:8080

Working

  1. Upload the log file

  2. For using the search feature just enter the term you want to search and press enter.

  3. For using the highlight feature

  • first highlight the key then press next.

  • second time highlight the value corresponding to it and then press next.

  • In the table of key,name,value enter the name of attribute you want to plot in the input field for example:

Snapshot 1: alt-text

For highlighting the value utmost care should be taken that there must be characters followed by the value you want.for example:

Snapshot 2: alt-text

consider the highlighted line different key value pairs can be:

  1. key: S(100.100.12.10:80: value: Hits(10.89,
  2. key: S(100.100.12.10:80: value: Hits(10.89, 0
  3. key: S(100.100.12.10:80: value: P[40,
  4. key: S(100.100.12.10.80: value: P[40, 0
  5. key: S(100.100.12.10.80: value: Mbps(0.00) and so on

Snapshot 3: alt-text

consider the highlighted line different key value pairs can be:

  1. key: EVENT MONITORDOWN value: MONITORDOWN 72409
  2. key: EVENT MONITORDOWN value: MONITORDOWN 72409 0
  3. key: GMT value: MONITORDOWN 72409 0
  4. key: GMT value:GMT NS_123 0-PPE-0 and so on