CXLA
🎉💥✨ Generic Log Analyzer
Prerequisites
- nodejs
- git
Installing Nodejs
- For 64-bit
wget https://nodejs.org/dist/v5.9.0/node-v5.9.0-linux-x64.tar.xztar -xvf node-v5.9.0-linux-x64.tar.xzcd node-v5.9.0-linux-x64/
- For 32-bit
wget https://nodejs.org/dist/v4.4.0/node-v4.4.0-linux-x86.tar.xztar -xvf node-v4.4.0-linux-x86.tar.xzcd 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
-
git clone https://github.com/shakdwipeea/CXLA.git
-
Move to the directory CXLA
-
Inside the directory
npm install
npm install -g pm2
pm2 start bin/www
OR
npm install -g nodemon
nodemon
OR
node ./bin/www
- Now visit
localhost:8080
Working
-
Upload the log file
-
For using the search feature just enter the term you want to search and press enter.
-
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:
For highlighting the value utmost care should be taken that there must be characters followed by the value you want.for example:
Snapshot 2:
consider the highlighted line different key value pairs can be:
- key: S(100.100.12.10:80: value: Hits(10.89,
- key: S(100.100.12.10:80: value: Hits(10.89, 0
- key: S(100.100.12.10:80: value: P[40,
- key: S(100.100.12.10.80: value: P[40, 0
- key: S(100.100.12.10.80: value: Mbps(0.00) and so on
Snapshot 3:
consider the highlighted line different key value pairs can be:
- key: EVENT MONITORDOWN value: MONITORDOWN 72409
- key: EVENT MONITORDOWN value: MONITORDOWN 72409 0
- key: GMT value: MONITORDOWN 72409 0
- key: GMT value:GMT NS_123 0-PPE-0 and so on