Filebeat logs are not being send to logstash

Hello,

I'm new to Elastic Stack and I'm trying to send logs from Filebeat to logstash to Elasticsearch. But I'm not seeing an Index pattern in Opensearch and when I run filebeat i get Errors. My filebeat.yml looks like this:

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

# filestream is an input for collecting log messages from files.
- type: filestream

  # Unique ID among all inputs, an ID is required.
  id: my-filestream-id

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

  # Paths that should be crawled and fetched. Glob based paths.
  paths:
    -  Y:\BOTlogs\WWI\IEG\Herbert_ITU\*.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.
  # Line filtering happens after the parsers pipeline. If you would like to filter lines
  # before parsers, use include_message parser.
  #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.
  # Line filtering happens after the parsers pipeline. If you would like to filter lines
  # before parsers, use include_message parser.
  #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: true

  # 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 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 dashboard archive. By default, this URL
# has a value that 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"]

  # Performance preset - one of "balanced", "throughput", "scale",
  # "latency", or "custom".
  preset: balanced

  # 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
  hosts: ["easv0465.ww-intern.de:5001"]

  # 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: ~

# ================================== 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 outputs 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

My logstash config is the following

input {
beats
}
port => 5001
add_field =>
{
"indexf" => "anywhere-nfs"
}
add_field =>
{
"agent_type" => "fb"
}
codec => plain {
cahrset => "UTF-8"
}
}
}
output {
opensearch {
hosts => [{{opensearch_4_dashboards}}]
index => "fb-%{indexf}-stream"
action => "create"
user => admin
password => "{{admin_pw}}"
ssl => false
ssl_certificate_verification => false
# cacert => "/full/path/to/root-ca.pem"
}
}

Can somebody help me?

OpenSearch/OpenDistro are AWS run products and differ from the original Elasticsearch and Kibana products that Elastic builds and maintains. You may need to contact them directly for further assistance. See What is OpenSearch and the OpenSearch Dashboard? | Elastic for more details.

(This is an automated response from your friendly Elastic bot. Please report this post if you have any suggestions or concerns :elasticheart: )

What errors? You need to share the errors you are getting.

Also, it seems that you are reading files from a NFS, right?

Keep in mind that Filebeat does not work well with network shares, and it is not recommended to read files from network shares, it may work in some cases, but you can have issues that does not have a fix.

Hello this is the error im getting. Yes it's from a NFS.

PS D:\Program Files\Filebeat> .\filebeat.exe -e -c filebeat.yml -d "*"
.\filebeat.exe : {"log.level":"info","@timestamp":"2024-04-23T14:53:13.459+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).confi
gure","file.name":"instance/beat.go","file.line":811},"message":"Home path: [D:\\Program Files\\Filebeat] Config path: [D:\\Program Files\\Filebeat] Data path: 
[D:\\Program Files\\Filebeat\\data] Logs path: [D:\\Program Files\\Filebeat\\logs]","service.name":"filebeat","ecs.version":"1.6.0"}
At line:1 char:1
+ .\filebeat.exe -e -c filebeat.yml -d "*"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: ({"log.level":"i...rsion":"1.6.0"}:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.461+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).l
oadMeta","file.name":"instance/beat.go","file.line":930},"message":"Beat metadata path: D:\\Program 
Files\\Filebeat\\data\\meta.json","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.462+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).configure","file.name"
:"instance/beat.go","file.line":819},"message":"Beat ID: 544167cc-c257-4952-ac39-4d3ac00d1409","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.499+0200","log.logger":"conditions","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/conditions.NewCo
ndition","file.name":"conditions/conditions.go","file.line":98},"message":"New condition contains: map[]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.499+0200","log.logger":"conditions","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/conditions.NewCo
ndition","file.name":"conditions/conditions.go","file.line":98},"message":"New condition !contains: map[]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.499+0200","log.logger":"processors","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/processors.New",
"file.name":"processors/processor.go","file.line":114},"message":"Generated new processors: add_host_metadata=[netinfo.enabled=[true], cache.ttl=[5m0s]], 
condition=!contains: map[]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.499+0200","log.logger":"seccomp","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/common/seccomp.load
Filter","file.name":"seccomp/seccomp.go","file.line":97},"message":"Syscall filtering is only supported on Linux","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.499+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemI
nfo","file.name":"instance/beat.go","file.line":1365},"message":"Beat info","service.name":"filebeat","system_info":{"beat":{"path":{"config":"D:\\Program 
Files\\Filebeat","data":"D:\\Program Files\\Filebeat\\data","home":"D:\\Program Files\\Filebeat","logs":"D:\\Program 
Files\\Filebeat\\logs"},"type":"filebeat","uuid":"544167cc-c257-4952-ac39-4d3ac00d1409"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.499+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemI
nfo","file.name":"instance/beat.go","file.line":1374},"message":"Build info","service.name":"filebeat","system_info":{"build":{"commit":"d41b4978ea7b4d7c6020b47ffd8a3b86
42531fe3","libbeat":"8.13.2","time":"2024-04-02T10:06:21.000Z","version":"8.13.2"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.500+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemI
nfo","file.name":"instance/beat.go","file.line":1377},"message":"Go runtime 
info","service.name":"filebeat","system_info":{"go":{"os":"windows","arch":"amd64","max_procs":8,"version":"go1.21.8"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.515+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemI
nfo","file.name":"instance/beat.go","file.line":1383},"message":"Host info","service.name":"filebeat","system_info":{"host":{"architecture":"x86_64","boot_time":"2024-04
-19T13:43:13+02:00","name":"iasv0795","ip":["fe80::3b1d:b72c:107:f0f7","172.22.185.36","::1","127.0.0.1"],"kernel_version":"10.0.17763.5696 
(WinBuild.160101.0800)","mac":["00:50:56:88:aa:fb"],"os":{"type":"windows","family":"windows","platform":"windows","name":"Windows Server 2019 Datacenter","version":"10.
0","major":10,"minor":0,"patch":0,"build":"17763.5696"},"timezone":"CEST","timezone_offset_sec":7200,"id":"df53860d-84e8-4def-8ec0-4a7fab08f44a"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.516+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemI
nfo","file.name":"instance/beat.go","file.line":1412},"message":"Process info","service.name":"filebeat","system_info":{"process":{"cwd":"D:\\Program 
Files\\Filebeat","exe":"D:\\Program 
Files\\Filebeat\\filebeat.exe","name":"filebeat.exe","pid":17220,"ppid":15744,"start_time":"2024-04-23T14:53:13.250+0200"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.516+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).createBeater","file.na
me":"instance/beat.go","file.line":334},"message":"Setup Beat: filebeat; Version: 8.13.2","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.532+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).c
reateBeater","file.name":"instance/beat.go","file.line":362},"message":"Initializing output plugins","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.557+0200","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/pipelin
e.(*eventConsumer).run","file.name":"pipeline/consumer.go","file.line":110},"message":"start pipeline event consumer","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.557+0200","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/pipeline
.LoadWithSettings","file.name":"pipeline/module.go","file.line":105},"message":"Beat name: iasv0795","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.557+0200","log.logger":"modules","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/fileset.newModuleRe
gistry","file.name":"fileset/modules.go","file.line":135},"message":"Enabled modules/filesets: ","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.557+0200","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/pipelin
e.(*queueReader).run","file.name":"pipeline/queue_reader.go","file.line":49},"message":"pipeline event consumer queue reader: 
start","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-04-23T14:53:13.558+0200","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).setupPipelineLoaderCall
back","file.name":"beater/filebeat.go","file.line":193},"message":"Filebeat is unable to load the ingest pipelines for the configured modules because the Elasticsearch 
output is not configured/enabled. If you have already loaded the ingest pipelines or are using Logstash pipelines, you can ignore this 
warning.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.558+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch","file.name":"i
nstance/beat.go","file.line":520},"message":"filebeat start running.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.558+0200","log.logger":"monitoring","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/report
/log.(*reporter).snapshotLoop","file.name":"log/log.go","file.line":145},"message":"Starting metrics logging every 30s","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.559+0200","log.logger":"service","log.origin":{"function":"github.com/elastic/elastic-agent-libs/service.ProcessWi
ndowsControlEvents","file.name":"service/service_windows.go","file.line":134},"message":"Windows is interactive: true","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.559+0200","log.logger":"test","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.isFile","fi
le.name":"registrar/migrate.go","file.line":287},"message":"isFile(D:\\Program Files\\Filebeat\\data\\registry) -> 
false","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.559+0200","log.logger":"test","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.isFile","fi
le.name":"registrar/migrate.go","file.line":287},"message":"isFile() -> false","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.559+0200","log.logger":"test","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.isDir","fil
e.name":"registrar/migrate.go","file.line":280},"message":"isDir(D:\\Program Files\\Filebeat\\data\\registry\\filebeat) -> 
true","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.559+0200","log.logger":"test","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.isFile","fi
le.name":"registrar/migrate.go","file.line":287},"message":"isFile(D:\\Program Files\\Filebeat\\data\\registry\\filebeat\\meta.json) -> 
true","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.561+0200","log.logger":"registrar","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.(*Migr
ator).Run","file.name":"registrar/migrate.go","file.line":82},"message":"Registry type '1' found","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.568+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/statestore/backend/memlog.openStore","file.
name":"memlog/store.go","file.line":134},"message":"Finished loading transaction log file for 'D:\\Program Files\\Filebeat\\data\\registry\\filebeat'. Active 
transaction id=6","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.571+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/statestore/backend/memlog.openStore","file.
name":"memlog/store.go","file.line":134},"message":"Finished loading transaction log file for 'D:\\Program Files\\Filebeat\\data\\registry\\filebeat'. Active 
transaction id=6","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-04-23T14:53:13.572+0200","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).Run","file.name":"beate
r/filebeat.go","file.line":331},"message":"Filebeat is unable to load the ingest pipelines for the configured modules because the Elasticsearch output is not 
configured/enabled. If you have already loaded the ingest pipelines or are using Logstash pipelines, you can ignore this 
warning.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.572+0200","log.logger":"input","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/filebeat/input/shipper.
NewInputManager","file.name":"shipper/input.go","file.line":55},"message":"creating new InputManager","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.573+0200","log.logger":"registrar","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.(*Regis
trar).loadStates","file.name":"registrar/registrar.go","file.line":107},"message":"States Loaded from registrar: 0","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.573+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).S
tart","file.name":"beater/crawler.go","file.line":71},"message":"Loading Inputs: 1","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.574+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).s
tartInput","file.name":"beater/crawler.go","file.line":117},"message":"starting input, keys present on the config: [filebeat.inputs.0.enabled filebeat.inputs.0.id 
filebeat.inputs.0.paths.0 filebeat.inputs.0.type]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.573+0200","log.logger":"registrar","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.(*Regi
strar).Run","file.name":"registrar/registrar.go","file.line":138},"message":"Starting Registrar","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.574+0200","log.logger":"scanner","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/filestream.(
*fileScanner).resolveRecursiveGlobs","file.name":"filestream/fswatch.go","file.line":334},"message":"recursive glob 
enabled","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.574+0200","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/filestream.newProspector","file.nam
e":"filestream/prospector_creator.go","file.line":58},"message":"file identity is set to 
native","service.name":"filebeat","filestream_id":"my-filestream-id","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.580+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).s
tartInput","file.name":"beater/crawler.go","file.line":148},"message":"Starting input (ID: 9942422031829516808)","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.580+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).S
tart","file.name":"beater/crawler.go","file.line":106},"message":"Loading and starting Inputs completed. Enabled inputs: 
1","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.580+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/c
ompat.(*runner).Start.func1","file.name":"compat/compat.go","file.line":121},"message":"Input 'filestream' 
starting","service.name":"filebeat","id":"my-filestream-id","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.580+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cfgfile.(*Reloader).Run","file.name":"cfgfi
le/reload.go","file.line":163},"message":"Config reloader started","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.580+0200","log.logger":"metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/i
nputmon.NewInputRegistry","file.name":"inputmon/input.go","file.line":63},"message":"registering","service.name":"filebeat","input_type":"filestream","id":"my-filestream
-id","key":"my-filestream-id","uuid":"6732d14f-c1fc-41d4-b659-5cf2ffa4d4dd","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.580+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/fil
estream.(*fileProspector).Run","file.name":"filestream/prospector.go","file.line":133},"message":"Starting 
prospector","service.name":"filebeat","id":"my-filestream-id","prospector":"file_prospector","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.581+0200","log.logger":"file_watcher","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/filestr
eam.(*fileWatcher).watch","file.name":"filestream/fswatch.go","file.line":125},"message":"Start next scan","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.583+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/fil
estream.(*fileProspector).onFSEvent","file.name":"filestream/prospector.go","file.line":179},"message":"A new file Y:\\BOTlogs\\WWI\\IEG\\Herbert_ITU\\testlog.txt has 
been found","service.name":"filebeat","id":"my-filestream-id","prospector":"file_prospector","operation":"create","source_name":"native::336462604-12913885-2147484745","
os_id":"336462604-12913885-2147484745","new_path":"Y:\\BOTlogs\\WWI\\IEG\\Herbert_ITU\\testlog.txt","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.583+0200","log.logger":"file_watcher","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/filestr
eam.(*fileWatcher).watch","file.name":"filestream/fswatch.go","file.line":229},"message":"File scan 
complete","service.name":"filebeat","total":1,"written":0,"truncated":0,"renamed":0,"removed":0,"created":1,"ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.584+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/fil
estream/internal/input-logfile.(*defaultHarvesterGroup).Start","file.name":"input-logfile/harvester.go","file.line":139},"message":"Starting harvester for 
file","service.name":"filebeat","id":"my-filestream-id","source_file":"filestream::my-filestream-id::native::336462604-12913885-2147484745","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.588+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/fil
estream.(*filestream).open","file.name":"filestream/input.go","file.line":185},"message":"newLogFileReader with config.MaxBytes:10485760","service.name":"filebeat","id":
"my-filestream-id","source_file":"filestream::my-filestream-id::native::336462604-12913885-2147484745","path":"Y:\\BOTlogs\\WWI\\IEG\\Herbert_ITU\\testlog.txt","state-id
":"native::336462604-12913885-2147484745","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T14:53:13.588+0200","log.logger":"detect_null_bytes","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/reader/deb
ug.(*Reader).Read","file.name":"debug/debug.go","file.line":95},"message":"Starting debug reader with a buffer size of 16384 and max failures of 
100","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:13.589+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/fil
estream.(*logFile).Read","file.name":"filestream/filestream.go","file.line":131},"message":"End of file reached: Y:\\BOTlogs\\WWI\\IEG\\Herbert_ITU\\testlog.txt; 
Backoff now.","service.name":"filebeat","id":"my-filestream-id","source_file":"filestream::my-filestream-id::native::336462604-12913885-2147484745","path":"Y:\\BOTlogs\\
WWI\\IEG\\Herbert_ITU\\testlog.txt","state-id":"native::336462604-12913885-2147484745","ecs.version":"1.6.0"}
{"log.level":"debug","@timestamp":"2024-04-23T14:53:15.590+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/fil
estream.(*logFile).Read","file.name":"filestream/filestream.go","file.line":131},"message":"End of file reached: Y:\\BOTlogs\\WWI\\IEG\\Herbert_ITU\\testlog.txt; 
Backoff now.","service.name":"filebeat","id":"my-filestream-id","source_file":"filestream::my-filestream-id::native::336462604-12913885-2147484745","path":"Y:\\BOTlogs\\
WWI\\IEG\\Herbert_ITU\\testlog.txt","state-id":"native::336462604-12913885-2147484745","ecs.version":"1.6.0"}

Can you run it without debug enabled? It is pretty rare to need debug level log for this kind of error.

Also, you have this error RemoteException, this seems to be related to filebeat not being able to talk to Logstash.

Is your logstash running? The configuration you shared is not valid, Logstash would not run with that configuration.

Can you double check and see if your Logstash is running and your Filebeat server can talk to it?

This configuration is not valid, you are closing the beats input in the wrong place.

input {
beats
}
port => 5001
add_field =>
{
"indexf" => "anywhere-nfs"
}
add_field =>
{
"agent_type" => "fb"
}
codec => plain {
cahrset => "UTF-8"
}
}
}

Hi I wrote a mistake in the logstash config: it looks like this

input {
beats
{
port => 5001
add_field =>
{
"indexf" => "anywhere-nfs"
}
add_field =>
{
"agent_type" => "fb"
}
codec => plain {
charset => "UTF-8"
}
}
}

This what it logs:

{"log.level":"info","@timestamp":"2024-04-23T15:16:45.395+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).configure","file.name":"instance/beat.go","file.line":811},"message":"Home path: [D:\\Program Files\\Filebeat] Config path: [D:\\Program Files\\Filebeat] Data path: [D:\\Program Files\\Filebeat] Logs path: [D:\\Program Files\\Filebeat\\filebeat\\logs]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.398+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).configure","file.name":"instance/beat.go","file.line":819},"message":"Beat ID: 9895eeb4-3e2a-42b1-942a-a4dff170bb7f","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.432+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemInfo","file.name":"instance/beat.go","file.line":1365},"message":"Beat info","service.name":"filebeat","system_info":{"beat":{"path":{"config":"D:\\Program Files\\Filebeat","data":"D:\\Program Files\\Filebeat","home":"D:\\Program Files\\Filebeat","logs":"D:\\Program Files\\Filebeat\\filebeat\\logs"},"type":"filebeat","uuid":"9895eeb4-3e2a-42b1-942a-a4dff170bb7f"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.432+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemInfo","file.name":"instance/beat.go","file.line":1374},"message":"Build info","service.name":"filebeat","system_info":{"build":{"commit":"d41b4978ea7b4d7c6020b47ffd8a3b8642531fe3","libbeat":"8.13.2","time":"2024-04-02T10:06:21.000Z","version":"8.13.2"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.432+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemInfo","file.name":"instance/beat.go","file.line":1377},"message":"Go runtime info","service.name":"filebeat","system_info":{"go":{"os":"windows","arch":"amd64","max_procs":8,"version":"go1.21.8"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.442+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemInfo","file.name":"instance/beat.go","file.line":1383},"message":"Host info","service.name":"filebeat","system_info":{"host":{"architecture":"x86_64","boot_time":"2024-04-19T13:43:13+02:00","name":"iasv0795","ip":["fe80::3b1d:b72c:107:f0f7","172.22.185.36","::1","127.0.0.1"],"kernel_version":"10.0.17763.5696 (WinBuild.160101.0800)","mac":["00:50:56:88:aa:fb"],"os":{"type":"windows","family":"windows","platform":"windows","name":"Windows Server 2019 Datacenter","version":"10.0","major":10,"minor":0,"patch":0,"build":"17763.5696"},"timezone":"CEST","timezone_offset_sec":7200,"id":"df53860d-84e8-4def-8ec0-4a7fab08f44a"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.442+0200","log.logger":"beat","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.logSystemInfo","file.name":"instance/beat.go","file.line":1412},"message":"Process info","service.name":"filebeat","system_info":{"process":{"cwd":"C:\\Windows\\system32","exe":"D:\\Program Files\\Filebeat\\filebeat.exe","name":"filebeat.exe","pid":10972,"ppid":804,"start_time":"2024-04-23T15:16:45.212+0200"},"ecs.version":"1.6.0"}}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.443+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).createBeater","file.name":"instance/beat.go","file.line":334},"message":"Setup Beat: filebeat; Version: 8.13.2","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.471+0200","log.logger":"publisher","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/publisher/pipeline.LoadWithSettings","file.name":"pipeline/module.go","file.line":105},"message":"Beat name: iasv0795","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.471+0200","log.logger":"modules","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/fileset.newModuleRegistry","file.name":"fileset/modules.go","file.line":135},"message":"Enabled modules/filesets: ","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-04-23T15:16:45.471+0200","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).setupPipelineLoaderCallback","file.name":"beater/filebeat.go","file.line":193},"message":"Filebeat is unable to load the ingest pipelines for the configured modules because the Elasticsearch output is not configured/enabled. If you have already loaded the ingest pipelines or are using Logstash pipelines, you can ignore this warning.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.472+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cmd/instance.(*Beat).launch","file.name":"instance/beat.go","file.line":520},"message":"filebeat start running.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.472+0200","log.logger":"monitoring","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/report/log.(*reporter).snapshotLoop","file.name":"log/log.go","file.line":145},"message":"Starting metrics logging every 30s","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.474+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/statestore/backend/memlog.openStore","file.name":"memlog/store.go","file.line":134},"message":"Finished loading transaction log file for 'D:\\Program Files\\Filebeat\\registry\\filebeat'. Active transaction id=3","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.480+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/statestore/backend/memlog.openStore","file.name":"memlog/store.go","file.line":134},"message":"Finished loading transaction log file for 'D:\\Program Files\\Filebeat\\registry\\filebeat'. Active transaction id=3","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2024-04-23T15:16:45.480+0200","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*Filebeat).Run","file.name":"beater/filebeat.go","file.line":331},"message":"Filebeat is unable to load the ingest pipelines for the configured modules because the Elasticsearch output is not configured/enabled. If you have already loaded the ingest pipelines or are using Logstash pipelines, you can ignore this warning.","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.481+0200","log.logger":"input","log.origin":{"function":"github.com/elastic/beats/v7/x-pack/filebeat/input/shipper.NewInputManager","file.name":"shipper/input.go","file.line":55},"message":"creating new InputManager","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.481+0200","log.logger":"registrar","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/registrar.(*Registrar).loadStates","file.name":"registrar/registrar.go","file.line":107},"message":"States Loaded from registrar: 0","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.481+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).Start","file.name":"beater/crawler.go","file.line":71},"message":"Loading Inputs: 1","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.481+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).startInput","file.name":"beater/crawler.go","file.line":117},"message":"starting input, keys present on the config: [filebeat.inputs.0.enabled filebeat.inputs.0.id filebeat.inputs.0.paths.0 filebeat.inputs.0.type]","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.482+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).startInput","file.name":"beater/crawler.go","file.line":148},"message":"Starting input (ID: 10814513752513258897)","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.482+0200","log.logger":"crawler","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/beater.(*crawler).Start","file.name":"beater/crawler.go","file.line":106},"message":"Loading and starting Inputs completed. Enabled inputs: 1","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.482+0200","log.logger":"input.filestream","log.origin":{"function":"github.com/elastic/beats/v7/filebeat/input/v2/compat.(*runner).Start.func1","file.name":"compat/compat.go","file.line":121},"message":"Input 'filestream' starting","service.name":"filebeat","id":"my-filestream-id","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.482+0200","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/cfgfile.(*Reloader).Run","file.name":"cfgfile/reload.go","file.line":163},"message":"Config reloader started","service.name":"filebeat","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2024-04-23T15:16:45.482+0200","log.logger":"metric_registry","log.origin":{"function":"github.com/elastic/beats/v7/libbeat/monitoring/inputmon.NewInputRegistry","file.name":"inputmon/input.go","file.line":63},"message":"registering","service.name":"filebeat","input_type":"filestream","id":"my-filestream-id","key":"my-filestream-id","uuid":"6b3fc657-09cc-4114-b707-68bc5fb5db6c","ecs.version":"1.6.0"}

My logstash is running other pipelines are working fine