honeytail

command module
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

README

honeytail

OSS Lifecycle CircleCI

honeytail is Honeycomb's agent for ingesting log file data into Honeycomb and making it available for exploration. Its favorite format is JSON, but understands how to parse a range of other well-known log formats.

See our documentation to read about how to configure and run honeytail, to find tips and best practices, and to download prebuilt versions.

Supported Parsers

honeytail supports reading files from STDIN as well as from a file on disk.

Our complete list of parsers can be found in the parsers/ directory, but as of this writing, honeytail will support parsing logs generated by:

Installation

Install from source:

go install github.com/honeycombio/honeytail@latest

to install to a specific path:

GOPATH=/usr/local go install github.com/honeycombio/honeytail@latest

the binary will install to /usr/local/bin/honeytail

Use a prebuilt binary: find the latest version on Honeycomb.io

Usage

Using command line arguments:

honeytail --writekey=YOUR_WRITE_KEY --dataset='Best Data Ever' --parser=json --file=/var/log/api_server.log

Using a config file:

honeytail --config honeytail-conf.ini

For more advanced usage, options, and the ability to scrub or drop specific fields, see our documentation.

We've extracted out some generic work for a particular log format:

  • mysqltools contains logic specific to normalizing MySQL queries

Contributions

Features, bug fixes and other changes to honeytail are gladly accepted. Please open issues or a pull request with your change. Remember to add your name to the CONTRIBUTORS file!

All contributions will be released under the Apache License 2.0.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package event contains the struct used to pass events between parsers and the libhoney module.
Package event contains the struct used to pass events between parsers and the libhoney module.
examples
simple-server Module
Package parsers provides an interface for different log parsing engines.
Package parsers provides an interface for different log parsing engines.
arangodb
Package arangodb is a parser for ArangoDB logs
Package arangodb is a parser for ArangoDB logs
csv
htjson
Package htjson (honeytail-json, renamed to not conflict with the json module) parses logs that are one json blob per line.
Package htjson (honeytail-json, renamed to not conflict with the json module) parses logs that are one json blob per line.
keyval
Package keyval parses logs whose format is many key=val pairs
Package keyval parses logs whose format is many key=val pairs
mongodb
Package mongodb is a parser for mongodb logs
Package mongodb is a parser for mongodb logs
mysql
Package mysql parses the mysql slow query log
Package mysql parses the mysql slow query log
nginx
Package nginx consumes nginx logs
Package nginx consumes nginx logs
postgresql
Package postgresql contains code for parsing PostgreSQL slow query logs.
Package postgresql contains code for parsing PostgreSQL slow query logs.
Package tail implements tailing a log file.
Package tail implements tailing a log file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL