filebeat.yml

filebeat.inputs:
- type: filestream
  enabled: true
  paths: 
    - /dataN/ngx8/logs-A100/access-*.log
    - /dataN/ngx8/logs-A100/error.log
  parsers:
    - ndjson:
        target: ""
        message_key: ""
filebeat.inputs:
- type: log
  enabled: true
  paths: 
    - /dataN/ngx8/logs-A100/access-*.log
    - /dataN/ngx8/logs-A100/error.log
  json.keys_under_root: true              
  json.overwrite_keys: true