Skip to content

Releases: bshuster-repo/logrus-logstash-hook

release v1.1.0

30 Oct 20:32
032848d
Compare
Choose a tag to compare

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

14 Jun 13:49
963df90
Compare
Choose a tag to compare

fix module naming in go.mod from bshuster-repo/logrus-logstash-hook to github.com/bshuster-repo/logrus-logstash-hook

release v1.0.1

12 Jun 21:04
6a1a972
Compare
Choose a tag to compare

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

27 Mar 10:05
Compare
Choose a tag to compare
travis: update go versions to test against (#56)

Signed-off-by: Sebastiaan van Stijn <[email protected]>

release v0.4.1

27 Sep 07:55
Compare
Choose a tag to compare
  • Bugfix: replace logrus.DefaultTimestampFormat with time.RFC3339

NOTE changes were tested against Go1.4-1.6

release v0.4

29 May 10:47
Compare
Choose a tag to compare
  • 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

29 May 10:46
Compare
Choose a tag to compare
  • 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

29 May 10:45
Compare
Choose a tag to compare

Update LICENSE to MIT from GPL