2018/05/18 06:42:13.510882 log_file.go:84: DBG End of file reached: /data/slow.log; Backoff now.
2018/05/18 06:42:16.502401 spooler.go:89: DBG Flushing spooler because of timeout. Events flushed: 1
2018/05/18 06:42:16.502884 processor.go:67: DBG fail to apply processor drop_fields=offset, prospector.type, fileset.module, fileset.name, beat.version, beat.name, input_type, mysql.slow.id: key=prospector: key not found, key=fileset: key not found, key=fileset: key not found, key=mysql: key not found
2018/05/18 06:42:16.503067 client.go:214: DBG Publish: {
"@timestamp": "2018-05-18T06:42:06.509Z",
"beat": {
"hostname": "wo-sms"
},
"fields": {
"my_type": "slow"
},
"ip": "192.168.1.6",
"message": "# Time: 2018-05-16T07:07:51.824687Z\n# User@Host: root[root] @ localhost [] Id: 15\n# Query_time: 17.312086 Lock_time: 0.000174 Rows_sent: 0 Rows_examined: 1572864\nSET timestamp=1526454471;\ninsert into t (key1,key2) select key1,key2 from t;",
"source": "/data/slow.log",
"type": "log"
}
i found the debug log show that there has not key mysql. i confuse if the processor running before the mysql module , so when the processor running , only can see an unformat log inclusive in the message ??
i review the doc again ,and find the answer why i can't drop the mysql.slow.id key with the processor.
because this key is actually generate on the ES ingest node before it stores into ES. on the filebeat node , it only record in a line which names messages. so the processor can't find the key .
sorry about waste your time . this question can close .
thank you.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.