Releases: bshuster-repo/logrus-logstash-hook
Releases · bshuster-repo/logrus-logstash-hook
release v1.1.0
Move to RFC3339Nano
as the default timestamp format in the logstash
JSON.
In case you want to use RFC3339 (the old one) set the formatter in the following way:
logstashFieldMap := logrus.Fields{"@version": "1", "type": "log"}
fields := logrus.FieldMap{
logrus.FieldKeyTime: "@timestamp",
logrus.FieldKeyMsg: "message",
}
logstashFmt := LogstashFormatter{
Formatter: &logrus.JSONFormatter{
FieldMap: logstashFieldMap,
TimestampFormat: time.RFC3339,
},
Fields: fields,
}
logrustashHook := logrustash.New(conn, logstashFmt)
release v1.0.2
fix module naming in go.mod from bshuster-repo/logrus-logstash-hook
to github.com/bshuster-repo/logrus-logstash-hook
release v1.0.1
Add support to entry caller in Logstash JSON.
When ReportCaller
is set to true through logrus
Logger the filename and function name will be added to the Logstash JSON as "file" and "function" respectively.
release v1.0.0
travis: update go versions to test against (#56) Signed-off-by: Sebastiaan van Stijn <[email protected]>
release v0.4.1
- Bugfix: replace logrus.DefaultTimestampFormat with time.RFC3339
NOTE changes were tested against Go1.4-1.6
release v0.4
- Update the name of the package from logrus_logstash to logrustash
- Add TimeFormat to Hook
- Replace the old logrus package path: github.com/Sirupsen/logrus with github.com/sirupsen/logrus
release v0.3
- Fix the Logstash format to set @Version to "1"
- Add unit-tests to logstash.go
- Remove the assert package
- Add prefix filtering
release v0.2
Update LICENSE to MIT from GPL