Skip to main content
All CollectionsAdvanced usage
Exporting log files to Elasticsearch
Exporting log files to Elasticsearch

How to port logs to your own Elasticsearch+Logstash+Kibana (ELK) stack

Jordi Giménez avatar
Written by Jordi Giménez
Updated over 7 years ago

Bugfender log sessions can be exported to files, either by using the Download file button button or the Amazon S3 upload feature.

The file format is similar to the syslog format with some additions. The columns are as follows, separated by spaces:

  • Date, time and time zone. For example, 2017-09-18 22:42:19 +0200 CEST

  • Log level: Error/Warning/Info

  • Tag name (optional)

  • Extra space

  • File name and line number. For example, ExampleViewController.m:478

  • Method name. For example, -[ARABoardViewController didReceiveList:]

  • Two extra spaces

  • Log message

For example, a complete log line looks like this:

2017-09-18 22:42:19 +0200 CEST I   ExampleViewController.m:478 -[ARABoardViewController didReceiveList:]   Sample log message

In order to import the file to Elasticsearch, you can use logstash with a grok filter:

%{DATE:timestamp} %{LOGLEVEL:level} %{NOTSPACE:tag}?  %{NOTSPACE:filename}:%{INT:line} %{DATA:method}   %{GREEDYDATA:message}

You will need the follow patterns in your patterns file:

LOGLEVEL (E|W|I)
DATE %{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{HOUR}:%{MINUTE}:%{SECOND} %{ISO8601_TIMEZONE} %{NOTSPACE}


Please note
: we are constantly improving Bugfender, this file format is subject to change.

Did this answer your question?