Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Root Admin users can query this service to quickly identify the sequence of steps related to a particular Job.

  2. QA can use this service to link the log messages related to automated test failures.

...

Layout Description

The system will comprise of a log shipping layer. This layer will be responsible for collecting logs from each of the management server shipping them to a centralized place. We describe how logstash can be used as the shipping layer. It will be configured to use redis to ship individual log files to a centralized location. Fluentd could be another option.

...

=====================================================================================================

 

API Command :

A new API command ExtractLogByJobIdCmd will be introduced. This will be implemented as a synchronous command.

Manager:

Steps in setting up the service:

  1. Deploy a vm intance from any existing linux based user template
  2. setup logstash on this guest instance
    1. There is a an apt repository and a yum repository from which logstash can be deployed.
  3. setup elasticsearch on this guest instance
    1. There is a an apt repository and a yum repository from which logstash can be deployed.
  4. Setup redis on this guest instance
    1. For yum : This is available from the REMI repository
    2. For apt : This is available from the
  5. Create a template from this virtual machine
  6. Subsequently this template can be used to spawn elasticsearch master and slave nodes.

 

 

Automation:

The following two scripts can automate steps 1 to 5 for the above process.

  • setup_es_template.sh
  • linux_flow.sh

This script takes all the paramters in a setup config file. The only line param this requires is the config file. Default setup.conf is adequately commented
to describe the required paramsThe manager class will implement the actual functionality of querying elastic search for log messages that match the specified filters. For doing this the Elasticsearch REST api queries will be used. Post method will be used with elasticsearch DSL to specify the required query. DSL is quite flexible and in future if support is required to filter by time stamp and other values DSL would help achieve that with ease.

DSL query for searching logs by jobid

...