graylog-to-grafana

Crates.iograylog-to-grafana
lib.rsgraylog-to-grafana
version0.2.1
sourcesrc
created_at2019-05-27 13:58:35.600929
updated_at2019-05-28 14:21:30.719205
descriptionThis tool can convert Graylog dashboards into Grafana dashboards.
homepage
repositoryhttps://github.com/GDATASoftwareAG/graylog-to-grafana
max_upload_size
id137341
size26,125
Jan Jansen (farodin91)

documentation

README

Graylog to Grafana   Build Status Latest Version

This tool can convert Graylog dashboards into Grafana dashboards.

graylog-to-grafana 0.2.1
jan.jansen <jan.jansen@gdata.de>
This tool can convert Graylog dashboards into Grafana dashboards.

USAGE:
    graylog-to-grafana [OPTIONS] <input> --graylog-url <graylog_url> <SUBCOMMAND>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --datasource <datasource>       [default: graylog]
        --graylog-url <graylog_url>    Graylog url

ARGS:
    <input>    Graylog content pack to process

SUBCOMMANDS:
    add         Allows to add automatically dashboards to Grafana
    generate    Allows to save Grafana dashboards into a directory
    help        Prints this message or the help of the given subcommand(s)

How to use

Create a content pack

Create a Graylog content pack.

Automatically import dashboards into Grafana

graylog-to-grafana dashboards.json --graylog-url <graylog_url> add --token [bearer-token] --url [grafana-url] --folder [folder-id]

The Argument --graylog-url is used for drilldown links.

Just convert dashboard into Grafana Json

graylog-to-grafana dashboards.json --graylog-url <graylog_url> generate dashboard

The Argument --graylog-url is used for drilldown links.

You can import these dashboard into grafana using the default user interface, see here Import dashboards.

Installation

From source

If you want to build graylog-to-grafana from source, you need Rust 1.31 or higher. You can then use cargo to build everything:

cargo install graylog-to-grafana
Commit count: 5

cargo fmt