You are browsing the documentation for version 3.1 of OroCommerce, OroCRM and OroPlatform, which is no longer maintained. Read version 5.1 (the latest LTS version) of the Oro documentation to get up-to-date information.

See our Release Process documentation for more information on the currently supported and upcoming releases.

Writing Logs to ELK Stack

ELK Stack is the acronym that represents three open source projects: Elasticsearch, Logstash, and Kibana. Elasticsearch is a search and analytics engine. Logstash is a server‑side data processing pipeline that ingests data from multiple sources simultaneously, transforms it, and then sends it to a “stash” like Elasticsearch. Kibana lets users visualize data with charts and graphs in Elasticsearch.

Installing ELK Stack

See the documentation on how to install ELK Stack on Elastic website.

Using Logstash Formatter

Logstash supports a variety of inputs that pull in all events from a multitude of common sources simultaneously. For more detailed documentation, check the Logstash product page. Configure Monolog Logstash formatter in your config_%env%.yml file.

# path/to/config_prod.yml

           type:       stream
           path:       "%kernel.logs_dir%/consumer.log"
           level:      debug
           channel:    ["consumer"]
           formatter:  monolog.formatter.logstash

Logs will be formatted like:

Using Filebeat

Filebeat helps you keep the simple things simple by offering a lightweight way to forward and centralize logs and files. Filebeat comes with internal modules (auditd, Apache, NGINX, System, MySQL, and more) that simplify the collection, parsing, and visualization of common log formats down to a single command.

Filebeat configuration:

    enabled: true
    hosts: ["localhost:5044"]

- type: log
        - /path/to/the/application/var/logs/consumer*.log
        keys_under_root: true
        overwrite_keys: true


Kibana works in pair with Elasticsearch and gives the possibility to search, view, and interact with data stored in Elasticsearch indices. You can easily perform advanced data analysis and visualize your data in a variety of charts, tables, and maps.

Kibana benefits:

  • Interactive charts

  • Mapping support

  • Pre-built aggregations and filters

  • Easily Accessible dashboards

Kibana Logs


You can easily set up dashboards and reports and share them with others. All you need is a browser to view and explore the data.

Charts and Metrics

Using Kibana’s pre-built aggregations and filters, you can run a variety of analytics like histograms, top-N queries, and trends with just a few clicks.

Kibana Charts Kibana Metrics

For more information, see the following external resources: