Update filebeat

Change log of rpc buffer as I want to set up alert when it goes to high

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
This commit is contained in:
Jakub Sztandera 2019-10-11 18:02:21 +02:00
parent decbc3ef6c
commit edd7085712
No known key found for this signature in database
GPG Key ID: 9A9AF56F8B3879BA
2 changed files with 11 additions and 1 deletions

View File

@ -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
}

View File

@ -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 ##########################################