Using filebeat v1.0.0~rc2 on Ubuntu 12.04.3 LTS, our large php-error log entries are getting truncated. The log entries are typically between 3k and 8k, common ones are around 4k. The first 1024 bytes is what seems to be getting cut off.
At first thought it was network or logstash related, I took those out of the picture by using the file output in filebeat to send the log output directly to a file on the server where filebeat is installed and watching the php_error log.
Is this a known issue, how can we be sure the entire entry is sent without getting truncated?
@Chris_Clifton This should of course not happen. The config file looks good. Any chance to provide me with a log file where the error happens? You can also share it privately.
Thanks for reporting. I've managed to create an unit test reproducing this error. Problem has been some internal read buffer being reduced by accident.
I am seeing files being truncated, and I am using filebeat-5.0.0-alpha3-linux-x64
2016-06-15T00:05:20Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150000.dump
2016-06-15T00:10:20Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150005.dump
2016-06-15T00:15:20Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150010.dump
2016-06-15T00:20:21Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150015.dump
2016-06-15T00:25:21Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150020.dump
2016-06-15T00:30:21Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150025.dump
2016-06-15T00:35:11Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150030.dump
2016-06-15T00:40:12Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150035.dump
2016-06-15T00:45:12Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150040.dump
2016-06-15T00:50:12Z INFO File was truncated. Begin reading file from offset 0: /flow_base_dir/dump/flows-201606150045.dum
This is totally unrelated. Version v1.0.0-rc2 used to have a bug fixed by then. The log message you're reffering to is filebeat having detected the files being forwarded have been changed in size (new file size < old file size). Please create another topic discussing your problem.
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.