Hi Dear,
I'm trying to exclude any files starting with gc but below regex did not work
and regex is verified, myfilebeat version is :8.3.2
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:
    #- c:\programdata\elasticsearch\logs\*
    - /app/softwareag/wm1011/IntegrationServer/instances/default/*
  ignore_older: 24h
  close_inactive: 5m
  clean_inactive: 30h
  prospector.scanner.exclude_files: ['.gz$', '^gc.*']