An open API service indexing awesome lists of open source software.

https://github.com/jorgelbg/dissect-tester

Simple API/UI for testing filebeat dissect patterns against a collection of sample log lines.
https://github.com/jorgelbg/dissect-tester

dissect elasticsearch filebeat filter hacktoberfest logstash

Last synced: about 1 year ago
JSON representation

Simple API/UI for testing filebeat dissect patterns against a collection of sample log lines.

Awesome Lists containing this project

README

          

# dissect-tester

![Filebeat](https://img.shields.io/badge/Beats-7.13.x-blueviolet?style=flat&logo=beats&color=00BFB3)
![Docker pulls](https://badgen.net/docker/pulls/jorgelbg/dissect-tester?icon=docker&color=purple)


dissect-tester logo

This project presents a simple web UI to test a collection of log line samples against a pattern
supported by the [Filebeat dissect processor](https://www.elastic.co/guide/en/beats/filebeat/master/dissect.html).

> Both [Logstash](https://www.elastic.co/guide/en/logstash/current/plugins-filters-dissect.html) and
> [Elasticsearch pipelines](https://www.elastic.co/guide/en/elasticsearch/reference/master/dissect-processor.html)
> have a similar filter/processor that uses the same configuration pattern. Therefore, this UI can be
> used to test a pattern that will be used in either Logstash or Elasticsearch pipelines.

## 🎮 Installing / Getting started

🔗 If you only want to test some samples you can go directly to the demo instance running in http://dissect-tester.jorgelbg.me/.

New releases are published to a public [Docker image](https://hub.docker.com/repository/docker/jorgelbg/dissect-tester). To run it you can use the following command:

```shell
docker run --rm -ti -p 8080:8080 jorgelbg/dissect-tester
```

The terminal should print a couple of messages similar to
```json
{"level":"info","timestamp":"2020-06-30T01:42:16.838+0200","caller":"dissect-tester/main.go:112","msg":"maxprocs: Leaving GOMAXPROCS=8: CPU quota undefined"}
{"level":"info","timestamp":"2020-06-30T01:42:16.838+0200","caller":"dissect-tester/main.go:137","msg":"Server is running","port":8080}
```

Indicating the the server is running. Head your browser to http://localhost:8080/ and enjoy 🎉.

Your browser should show the following:

![Screenshot](http://screen.jorgelbg.me/jorgelbg-dropshare/Screen-Shot-2020-02-19-5-43-11.30-PM.png)

## 👨🏻‍💻 Developing

```shell
git clone https://github.com/jorgelbg/dissect-tester
cd dissect-tester/
make
```

This will build a binary placed in `bin/github.com/jorgelbg/dissect-tester` for your native platform.

If you want to build a new Docker image use the following command:

```shell
make docker
```

For running all tests you can use:

```shell
make test
```

## 🤚🏻 Contributing

If you'd like to contribute, please fork the repository and use a feature
branch. Pull requests are warmly welcome.

## 🚀 Links

- Project homepage/Demo: http://dissect-tester.jorgelbg.me/
- The project icon is based on the icon made by [monkik in www.flaticon.com](https://www.flaticon.com/free-icon/checklist_1085842)
- Icons made by [Pixel perfect from www.flaticon.com](https://www.flaticon.com/authors/pixel-perfect)