Skip to content

Update module github.com/bshuster-repo/logrus-logstash-hook to v1.1.0

This MR contains the following updates:

Package Type Update Change
github.com/bshuster-repo/logrus-logstash-hook require minor v1.0.2 -> v1.1.0

Release Notes

bshuster-repo/logrus-logstash-hook

v1.1.0

Compare Source

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)

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Merge request reports