Skip to content

lerkoah/ObsSM

 
 

Repository files navigation

ObsSM 1.0 version

ALMA Log's State Machine Parser

This is the how to compile and run, for further information see: https://github.com/javierivanov/ObsSM/wiki

ObsSM: Interpreter

  • Easy build and run
curl https://raw.githubusercontent.com/javierivanov/ObsSM/master/auto_install.sh -o - |sh

Compiling process, normal procedure

The interpreter works on java version >= 1.7 (Oracle) Tested on Ubuntu 15.10, Oracle jdk 7, maven2.

wget https://github.com/javierivanov/ObsSM/archive/master.zip
unzip master.zip
  • Enter to the project folder
cd ObsSM-master/ObsSM/
  • Compile using Maven

You have to have installed Maven for this step. You can check this, trying with the command mvn. Anyway you can install it from here: [https://maven.apache.org]

mvn clean dependency:copy-dependencies package

or

./build.sh

Execute the interpreter

java -cp "target/ObsSM-1.0.jar:target/dependency/*" org.alma.obssm.Run

or

./obssm.sh

How to send logs to the interpreter

ObsSM includes a built-in ElasticSearch retriever, and search data directly from the ES server.

Not available yet! Also you can send line logs through the logSender.py script. If you want to use another port, host, python version or whatever, the scritp is very easy to modify (few lines). You can build your own implementation on another language.

  • To run the log sender:
python2 scripts/logSender.py

Discovery: Transitions

This is an application to discover transitions into the log, generating a SCXML model.

Downloading Logs from Elastic Search:

Help discovery.py

Usage: discovery.py [options]

Options:
  -h, --help            show this help message and exit
  -f JSON, --file=JSON  JSON Log translate document
  -v, --verbose         Show data from transitions

You can use the obssm.sh in grep mode to obtain logs:

./obssm.sh -c --grep --date_from="2016-05-22T21:16:22.037" --date_to="2016-05-23T21:16:22.037" --query="*"

So, you can use a pipe:

ObsSM/obssm.sh -c --grep --date_from="2016-05-23T20:16:22.037" --date_to="2016-05-23T21:16:22.037" --query="*" | python2 Discovery/src/discovery.py -f json-document.json

About

ALMA Log's State Machine Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 77.0%
  • Java 19.4%
  • CSS 1.7%
  • Python 1.7%
  • Other 0.2%