Transfer message via filebeat

Lines passed by filebeat are not processed correctly.
Part of the line sometimes breaks up into several parts, part of the message arrives, and the other can be shaken altogether.

original file

Network Management Card AOS v6.7.2
Smart-UPS & Matrix-UPS APP v6.7.2
NMC Serial Number: ZA1928020171

Model: Smart-UPS X 1000
UPS Serial Number: AS1945243344
Firmware Revision: UPS 09.8 (ID20) 

Date     	Time     	Name	Contact	Location	System IP
24.05.2021	12:04:10	 UPS01	Unknown	COK	1.2.3.4

		Smart-UPS X 1000                   	   	   	   	   	   	   	   	   	   	Integrated EMU   	   	   	   	
Date	Time	Vmin	Vmax	Vout	Iout	%Wout	%out	FrqOut	%Cap	Vbat	Tups	T1ambC	%Hum1	T2ambC	%Hum2
19.05.2021	07:04:43	223.75	228.38	225.75	0.75	16.76	17.71	49.99	100.00	54.28	+27.59	23.0	   	   	   	
19.05.2021	07:09:43	223.56	226.38	224.38	0.75	16.76	17.60	50.03	100.00	54.28	+27.61	23.0	   	   	   	
19.05.2021	07:14:43	224.19	227.00	224.56	0.75	16.76	17.86	50.00	100.00	54.19	+27.59	23.0	   	   	   	
19.05.2021	07:19:43	222.38	225.38	223.56	0.75	16.76	17.78	49.98	100.00	54.19	+27.61	23.0	   	   	   	
19.05.2021	07:24:43	223.19	227.75	224.19	0.75	16.76	17.58	50.02	100.00	54.19	+27.63	23.0	   	   	   	
19.05.2021	07:29:43	221.38	226.00	223.38	0.75	16.33	17.75	50.00	100.00	54.19	+27.63	23.0	   	   	   	
19.05.2021	07:34:43	220.75	225.56	222.75	0.75	16.76	17.70	49.99	100.00	54.19	+27.66	23.0	   	   	   	
19.05.2021	07:39:43	221.56	227.56	224.75	0.75	16.33	17.63	50.03	100.00	54.19	+27.70	23.0	   	   	   	
19.05.2021	07:44:43	222.56	226.19	223.56	0.75	16.33	17.54	49.98	100.00	54.28	+27.70	23.0	   	   	   	
19.05.2021	07:49:43	222.19	225.75	222.75	0.75	16.76	17.49	50.01	100.00	54.19	+27.68	23.0	   	   	   	
19.05.2021	07:54:43	220.75	225.00	221.75	0.75	15.90	17.17	50.04	100.00	54.19	+27.70	24.0	   	   	   	
19.05.2021	07:59:43	217.56	223.00	219.00	0.75	16.76	17.18	49.98	100.00	54.19	+27.73	23.0	   	   	   	
19.05.2021	08:04:43	217.75	222.19	221.00	0.75	16.33	17.33	49.98	100.00	54.19	+27.75	23.0	   	   	   	
19.05.2021	08:09:43	219.38	224.00	223.56	0.75	16.33	17.30	50.00	100.00	54.19	+27.75	23.0	   	   	   	
19.05.2021	08:14:43	215.56	223.75	216.56	0.75	16.33	16.99	49.98	100.00	54.19	+27.75	24.0	   	   	   	
19.05.2021	08:19:43	213.56	220.00	215.19	0.75	16.33	16.88	49.99	100.00	54.28	+27.73	24.0	   	   	   	
19.05.2021	08:24:43	215.19	221.19	218.75	0.75	15.90	17.16	49.98	100.00	54.19	+27.73	24.0	   	   	   	
19.05.2021	08:29:43	215.75	220.00	219.38	0.75	16.76	17.20	50.03	100.00	54.19	+27.73	24.0	   	   	   	
19.05.2021	08:34:43	213.38	221.75	218.56	0.75	16.33	17.16	49.98	100.00	54.19	+27.75	24.0	   	   	   	
19.05.2021	08:39:43	216.38	220.75	219.75	0.75	19.77	17.25	50.02	100.00	54.19	+27.77	24.0	   	   	   	
19.05.2021	08:44:43	217.38	222.38	219.56	0.75	16.33	17.00	49.98	100.00	54.28	+27.77	24.0	   	   	   	
19.05.2021	08:49:43	218.38	224.56	223.56	0.75	16.33	17.32	50.02	100.00	54.28	+27.77	24.0	   	   	   	
19.05.2021	08:54:43	218.75	225.75	220.56	0.75	16.76	17.32	50.03	100.00	54.19	+27.79	24.0	   	   	   	
19.05.2021	08:59:43	220.19	224.19	220.38	0.75	16.76	17.06	50.01	100.00	54.19	+27.81	24.0	   	   	   	
19.05.2021	09:04:43	219.56	225.00	220.38	0.75	16.33	17.28	50.02	100.00	54.19	+27.81	24.0	   	   	   	
19.05.2021	09:09:43	216.75	224.19	222.00	0.75	16.76	17.18	50.04	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	09:14:43	219.00	224.00	220.38	0.75	16.33	17.30	50.02	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	09:19:43	219.00	224.75	223.00	0.75	16.33	17.27	50.00	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	09:24:43	218.38	224.56	220.38	0.75	16.33	17.07	50.02	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	09:29:44	216.19	222.56	218.56	0.75	16.76	17.16	50.05	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	09:34:44	216.38	222.19	221.75	0.75	15.90	17.18	50.02	100.00	54.28	+27.86	24.0	   	   	   	
19.05.2021	09:39:44	218.56	222.56	220.75	0.75	16.33	17.09	50.03	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	09:44:44	218.19	222.56	221.56	0.75	16.33	17.15	50.00	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	09:49:44	218.00	224.00	219.19	0.75	16.33	16.96	50.02	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	09:54:44	217.00	221.56	219.38	0.75	16.33	16.98	50.04	100.00	54.19	+27.88	24.0	   	   	   	
19.05.2021	09:59:44	218.38	224.75	222.00	0.75	16.33	17.18	50.05	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	10:04:44	218.00	222.19	221.75	0.75	16.33	17.17	50.00	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	10:09:44	221.19	225.19	222.56	0.75	16.33	17.23	50.01	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	10:14:44	220.00	225.56	224.19	0.75	14.61	17.37	49.99	100.00	54.19	+27.84	24.0	   	   	   	
19.05.2021	10:19:44	220.75	226.56	226.00	0.75	16.33	17.26	50.01	100.00	54.19	+27.86	23.0	   	   	   	
19.05.2021	10:24:44	221.19	226.00	225.19	0.75	16.76	17.43	50.02	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	10:29:44	219.56	226.00	224.00	0.75	15.90	17.36	50.01	100.00	54.19	+27.86	24.0	   	   	   	
19.05.2021	10:34:44	219.00	224.75	220.75	0.75	16.33	17.09	50.03	100.00	54.19	+27.88	24.0	   	   	   	
19.05.2021	10:39:44	217.75	222.75	220.56	0.75	16.33	17.07	50.02	100.00	54.19	+27.88	24.0	   	   	   	
19.05.2021	10:44:44	217.56	223.75	218.56	0.75	16.33	16.92	49.98	100.00	54.19	+27.88	24.0	   	   	   	
19.05.2021	10:49:44	218.56	223.75	221.75	0.75	16.33	17.18	49.98	100.00	54.19	+27.88	24.0	   	   	   	
19.05.2021	10:54:44	219.75	224.19	221.38	0.75	16.33	17.14	50.01	100.00	54.19	+27.88	24.0	   	   	   	
19.05.2021	10:59:44	220.00	224.00	222.38	0.75	16.76	17.00	50.02	100.00	54.28	+27.88	24.0	   	   	   	
19.05.2021	11:04:44	219.75	224.38	220.75	0.75	16.33	17.32	49.97	100.00	54.78	+27.86	24.0	   	   	   	
19.05.2021	11:09:44	218.56	224.00	223.38	0.75	16.33	17.06	50.01	100.00	54.28	+27.52	22.0	   	   	   	
19.05.2021	11:14:44	219.19	224.75	221.75	0.75	16.33	16.96	50.00	100.00	54.28	+27.38	22.0	   	   	   	
19.05.2021	11:19:44	219.75	224.38	222.38	0.75	16.33	17.23	50.02	100.00	54.28	+27.35	22.0	   	   	   	
19.05.2021	11:24:44	218.38	223.38	222.56	0.75	16.33	17.00	50.03	100.00	54.28	+27.38	22.0	   	   	   	
19.05.2021	11:29:44	218.75	224.19	220.56	0.75	16.33	17.07	50.05	100.00	54.28	+27.59	23.0	   	   	   	
19.05.2021	11:34:44	217.75	222.56	220.75	0.75	16.33	17.09	50.02	100.00	54.28	+27.52	23.0	   	   	   	
19.05.2021	11:39:44	219.38	226.00	224.19	0.75	16.33	17.13	49.99	100.00	54.28	+27.54	23.0	   	   	   	
19.05.2021	11:44:44	223.00	227.19	223.75	0.75	16.33	17.11	50.02	100.00	54.19	+27.54	23.0	   	   	   	
19.05.2021	11:49:44	220.38	226.75	222.38	0.75	16.33	17.22	50.03	100.00	54.28	+27.59	23.0	   	   	   	
19.05.2021	11:54:44	219.56	226.56	225.75	0.75	16.33	17.25	50.05	100.00	54.28	+27.59	23.0	   	   	   	
19.05.2021	11:59:44	218.00	229.00	222.19	0.75	16.33	17.20	50.05	100.00	54.28	+27.63	23.0	   	   	   	
19.05.2021	12:04:44	219.00	225.00	223.38	0.72	16.33	16.84	49.99	100.00	54.19	+27.66	23.0	   	   	   	
19.05.2021	12:09:44	219.19	224.75	222.56	0.75	16.33	17.23	50.02	100.00	54.19	+27.66	23.0	   	   	   	
19.05.2021	12:14:44	220.19	225.56	222.56	0.75	16.33	17.23	49.99	100.00	54.19	+27.70	24.0	   	   	   	
19.05.2021	12:19:44	221.19	227.00	223.00	0.75	16.76	17.26	50.03	100.00	54.19	+27.70	24.0	   	   	   	
19.05.2021	12:24:44	219.00	229.56	225.38	0.75	16.33	17.46	50.05	100.00	54.19	+27.73	24.0	   	   	   	
19.05.2021	12:29:44	223.19	228.56	227.00	0.75	16.76	17.34	50.04	100.00	54.19	+27.75	24.0	   	   	   	
19.05.2021	12:34:44	223.00	228.19	225.00	0.75	16.33	17.20	50.02	100.00	54.19	+27.77	24.0	   	   	   	
19.05.2021	12:39:44	222.38	227.19	226.75	0.75	16.33	17.33	49.99	100.00	54.19	+27.77	24.0	   	   	   	

sometimes messages are parsed in this form:

2		26.84	+36.00	25.0	
6.84	+35.50	25.0	   
	25.0	   	  

the records in the files are updated every few hours.
Some messages are processed correctly, and some are partially

Which filebeat module are you using? Could you share your filebeat config please? Thanks!

I do not use mods, in the configuration file I indicate the location of the log files.
Please tell me how many files the Filebeat agent can monitor, now it monitors about 30, but I need to monitor about 350 files for changes.
config filebeat 7.14:

###################### Filebeat Configuration Example #########################

# This file is an example configuration file highlighting only the most common
# options. The filebeat.reference.yml file from the same directory contains all the
# supported options with more comments. You can use it as a reference.
#
# You can find the full configuration reference here:
# https://www.elastic.co/guide/en/beats/filebeat/index.html

# For more available modules and options, please see the filebeat.reference.yml sample
# configuration file.

# ============================== Filebeat inputs ===============================

filebeat.inputs:

# Each - is an input. Most options can be set at the input level, so
# you can use different inputs for various configurations.
# Below are the input specific configurations.

- type: log

  # Change to true to enable this input configuration.
  enabled: true

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /var/log/ups/*.txt
    #- c:\programdata\elasticsearch\logs\*

  # Exclude lines. A list of regular expressions to match. It drops the lines that are
  # matching any regular expression from the list.
  #exclude_lines: ['^DBG']

  # Include lines. A list of regular expressions to match. It exports the lines that are
  # matching any regular expression from the list.
  #include_lines: ['^ERR', '^WARN']

  # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  # are matching any regular expression from the list. By default, no files are dropped.
  #exclude_files: ['.gz$']

  # Optional additional fields. These fields can be freely picked
  # to add additional information to the crawled log files for filtering
  #fields:
  #  level: debug
  #  review: 1

  ### Multiline options

  # Multiline can be used for log messages spanning multiple lines. This is common
  # for Java Stack Traces or C-Line Continuation

  # The regexp Pattern that has to be matched. The example pattern matches all lines starting with [
  #multiline.pattern: ^\[
  ##  multiline.type: pattern
  ##multiline.pattern: '^Date'
  ##multiline.negate: true
  ##multiline.match: after

  # Defines if the pattern set under pattern should be negated or not. Default is false.
  #multiline.negate: false

  # Match can be set to "after" or "before". It is used to define if lines should be append to a pattern
  # that was (not) matched before or after or as long as a pattern is not matched based on negate.
  # Note: After is the equivalent to previous and before is the equivalent to to next in Logstash
  #multiline.match: after

# filestream is an experimental input. It is going to replace log input in the future.
- type: filestream

  # Change to true to enable this input configuration.
  enabled: false

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    - /var/log/*.log
    #- c:\programdata\elasticsearch\logs\*

  # Exclude lines. A list of regular expressions to match. It drops the lines that are
  # matching any regular expression from the list.
  #exclude_lines: ['^DBG']

  # Include lines. A list of regular expressions to match. It exports the lines that are
  # matching any regular expression from the list.
  #include_lines: ['^ERR', '^WARN']

  # Exclude files. A list of regular expressions to match. Filebeat drops the files that
  # are matching any regular expression from the list. By default, no files are dropped.
  #prospector.scanner.exclude_files: ['.gz$']

  # Optional additional fields. These fields can be freely picked
  # to add additional information to the crawled log files for filtering
  #fields:
  #  level: debug
  #  review: 1

# ============================== Filebeat modules ==============================

filebeat.config.modules:
  # Glob pattern for configuration loading
  path: ${path.config}/modules.d/*.yml

  # Set to true to enable config reloading
  reload.enabled: false

  # Period on which files under path should be checked for changes
  #reload.period: 10s

# ======================= Elasticsearch template setting =======================

setup.template.settings:
  index.number_of_shards: 1
  #index.codec: best_compression
  #_source.enabled: false


# ================================== General ===================================

# The name of the shipper that publishes the network data. It can be used to group
# all the transactions sent by a single shipper in the web interface.
#name:

# The tags of the shipper are included in their own field with each
# transaction published.
#tags: ["service-X", "web-tier"]

# Optional fields that you can specify to add additional information to the
# output.
#fields:
#  env: staging

# ================================= Dashboards =================================
# These settings control loading the sample dashboards to the Kibana index. Loading
# the dashboards is disabled by default and can be enabled either by setting the
# options here or by using the `setup` command.
#setup.dashboards.enabled: false

# The URL from where to download the dashboards archive. By default this URL
# has a value which is computed based on the Beat name and version. For released
# versions, this URL points to the dashboard archive on the artifacts.elastic.co
# website.
#setup.dashboards.url:

# =================================== Kibana ===================================

# Starting with Beats version 6.0.0, the dashboards are loaded via the Kibana API.
# This requires a Kibana endpoint configuration.
setup.kibana:

  # Kibana Host
  # Scheme and port can be left out and will be set to the default (http and 5601)
  # In case you specify and additional path, the scheme is required: http://localhost:5601/path
  # IPv6 addresses should always be defined as: https://[2001:db8::1]:5601
  #host: "localhost:5601"

  # Kibana Space ID
  # ID of the Kibana Space into which the dashboards should be loaded. By default,
  # the Default Space will be used.
  #space.id:

# =============================== Elastic Cloud ================================

# These settings simplify using Filebeat with the Elastic Cloud (https://cloud.elastic.co/).

# The cloud.id setting overwrites the `output.elasticsearch.hosts` and
# `setup.kibana.host` options.
# You can find the `cloud.id` in the Elastic Cloud web UI.
#cloud.id:

# The cloud.auth setting overwrites the `output.elasticsearch.username` and
# `output.elasticsearch.password` settings. The format is `<user>:<pass>`.
#cloud.auth:

# ================================== Outputs ===================================

# Configure what output to use when sending the data collected by the beat.

# ---------------------------- Elasticsearch Output ----------------------------
#output.elasticsearch:
  # Array of hosts to connect to.
  #  hosts: ["localhost:9200"]

  # Protocol - either `http` (default) or `https`.
  #protocol: "https"

  # Authentication credentials - either API key or username/password.
  #api_key: "id:api_key"
  #username: "elastic"
  #password: "changeme"

# ------------------------------ Logstash Output -------------------------------
output.logstash:
  # The Logstash hosts
  enabled: true
  hosts: ["1.2.3.4:5555"]
  index: "ups-"
  # Optional SSL. By default is off.
  # List of root certificates for HTTPS server verifications
  #ssl.certificate_authorities: ["/etc/pki/root/ca.pem"]

  # Certificate for SSL client authentication
  #ssl.certificate: "/etc/pki/client/cert.pem"

  # Client Certificate Key
  #ssl.key: "/etc/pki/client/cert.key"

# ================================= Processors =================================
processors:
  - add_host_metadata:
      when.not.contains.tags: forwarded
  - add_cloud_metadata: ~
  - add_docker_metadata: ~
  - add_kubernetes_metadata: ~
  - drop_fields:
      fields: ["host.os.version", "host.os.platform", "host.os.name", "host.os.kernel", "host.os.family", "host.architecture", "ecs.version", "agent.hostname", "agent.name", "host.os.build", "host.mac", "agent.ephemeral_id", "agent.id", "host.os.type", "host.id", "host.os.codename"]
    #  - drop_fields:
    #fields: ["agent.ephemeral_id", "agent.hostname", "agent.id", "agent.type", "agent.version", "agent", "ecs.version", "ecs", "input.type", "input", "log.offset", "version"]
# ================================== Logging ===================================

# Sets log level. The default log level is info.
# Available log levels are: error, warning, info, debug
logging.level: debug

# At debug level, you can selectively enable logging only for some components.
# To enable all selectors use ["*"]. Examples of other selectors are "beat",
# "publisher", "service".
#logging.selectors: ["*"]

# ============================= X-Pack Monitoring ==============================
# Filebeat can export internal metrics to a central Elasticsearch monitoring
# cluster.  This requires xpack monitoring to be enabled in Elasticsearch.  The
# reporting is disabled by default.

# Set to true to enable the monitoring reporter.
#monitoring.enabled: false

# Sets the UUID of the Elasticsearch cluster under which monitoring data for this
# Filebeat instance will appear in the Stack Monitoring UI. If output.elasticsearch
# is enabled, the UUID is derived from the Elasticsearch cluster referenced by output.elasticsearch.
#monitoring.cluster_uuid:

# Uncomment to send the metrics to Elasticsearch. Most settings from the
# Elasticsearch output are accepted here as well.
# Note that the settings should point to your Elasticsearch *monitoring* cluster.
# Any setting that is not set is automatically inherited from the Elasticsearch
# output configuration, so if you have the Elasticsearch output configured such
# that it is pointing to your Elasticsearch monitoring cluster, you can simply
# uncomment the following line.
#monitoring.elasticsearch:

# ============================== Instrumentation ===============================

# Instrumentation support for the filebeat.
#instrumentation:
    # Set to true to enable instrumentation of filebeat.
    #enabled: false

    # Environment in which filebeat is running on (eg: staging, production, etc.)
    #environment: ""

    # APM Server hosts to report instrumentation results to.
    #hosts:
    #  - http://localhost:8200

    # API Key for the APM Server(s).
    # If api_key is set then secret_token will be ignored.
    #api_key:

    # Secret token for the APM Server(s).
    #secret_token:


# ================================= Migration ==================================

# This allows to enable 6.7 migration aliases
#migration.6_to_7.enabled: true

Do the experts have any thoughts on this? thanks