Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hartfordfive/filebeat-multiline-tester
Basic application to test multi-line patterns for filebeat configurations
https://github.com/hartfordfive/filebeat-multiline-tester
Last synced: about 8 hours ago
JSON representation
Basic application to test multi-line patterns for filebeat configurations
- Host: GitHub
- URL: https://github.com/hartfordfive/filebeat-multiline-tester
- Owner: hartfordfive
- License: mit
- Created: 2016-10-03T18:17:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-07T22:25:54.000Z (about 7 years ago)
- Last Synced: 2024-06-20T16:35:26.560Z (5 months ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Filebeat Multi-line Tester
## Description
A small Go application to test a multi-line regex to be used with the filebeat `multiline` config option
## Building application
Run `make build` in the root of this application repository.
## Usage
- `-f` : File containing multi-line string to test (default: "")
- `-n` : Negate the pattern matching (default: true)
- `-p` : Multi-line regex pattern to use for the matching (default: "")
- `-y` : Specify a filebeat prospector yaml config, which overrides the `-f`, `-n`, and `-p` flags (default: "")
- `-v` : Prints current version and exits## Example
./multiline-test -p "^=[A-Z]+|^$" -f teststring.txt
## Credits
This code base is a adaptation of the code sample which Elastic provides as a testing mechanism within the Go Playground.
https://play.golang.org/p/uAd5XHxscu
## License
Coverted under the [MIT license](LICENSE.md).