diff --git a/lib/jsonrpc/client.go b/lib/jsonrpc/client.go index 4530bfd34..7218d087e 100644 --- a/lib/jsonrpc/client.go +++ b/lib/jsonrpc/client.go @@ -163,7 +163,7 @@ func (c *client) makeOutChan(ctx context.Context, ftyp reflect.Type, valOut int) buf.PushBack(val) if buf.Len() > 1 { - log.Warnf("rpc output channel has %d buffered messages", buf.Len()) + log.Warnw("rpc output message buffer", "n", buf.Len()) bufLk.Unlock() return } diff --git a/scripts/filebeat.yml b/scripts/filebeat.yml index 0a027b655..38c9adbc7 100644 --- a/scripts/filebeat.yml +++ b/scripts/filebeat.yml @@ -11,6 +11,8 @@ filebeat.inputs: type: lotus-miner fields_under_root: true json.keys_under_root: false + json.message_key: msg + encoding: utf-8 ignore_older: 3h - type: log @@ -22,6 +24,7 @@ filebeat.inputs: type: lotus-daemon fields_under_root: true json.keys_under_root: false + json.message_key: msg encoding: utf-8 ignore_older: 3h @@ -55,6 +58,13 @@ processors: - '2019-10-10T22:37:48.297+0200' - drop_fields: fields: ['json.ts'] +- if: + has_fields: ['json.msg'] + then: + - rename: + fields: + - from: 'json.msg' + to: 'message' ############################# Output ##########################################