﻿---
title: Filebeat isn't shipping the last line of a file
description: Filebeat uses a newline character to detect the end of an event. If lines are added incrementally to a file that’s being harvested, a newline character...
url: https://docs-v3-preview.elastic.dev/elastic/beats/pull/47883/reference/filebeat/newline-character-required-eof
---

# Filebeat isn't shipping the last line of a file
Filebeat uses a newline character to detect the end of an event. If lines are added incrementally to a file that’s being harvested, a newline character is required after the last line, or Filebeat will not read the last line of the file.