A framework, implemented with python3, to easily assert the expected behavior of a software in real time, using log files
Inflate ElasticSearch with RocketChat logs
cd ./rocketchat
cat README.md
virtualenv -p python3 venv
source ./venv/bin/activate
pip install -r requierments.txt
PYTHONPATH=./src python rocketchat/rocketchat_test.py
SpiTest works in 3 parts:
- Agents
- Core
- Database queries (ElasticSearch)
The interaction with SpiTest is from the implementation of an Agent.
An agent, called LogAgent
, is an interface that tells the core
when to be called based on the content of the expected log.
Log file are parsed with LogStash and injected into ElasticSearch
The required fields are:
@timestamp
with the timestamp of the registered loglog
the message inside the log
Have a look at ./rocketchat/elastic/logsstash/logstash.conf
for an exemple