﻿---
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://www.elastic.co/elastic/docs-builder/docs/3028/reference/beats/filebeat/newline-character-required-eof
products:
  - Beats
  - Filebeat
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

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