Sending logs (JSON nested) using filebeat, the fields are getting created in (confirming from index pattern) , but the decoded fields are not visible in Kibana Discover tab.
Sample data
{"id":"5f5a0206-c431-4d76-9e8a-06095a2c2317","name":"Mavent-EPPS","date":"2020-11-22 21:55:33 PST","apmModuleDetailViewData":[{"licenseModuleType":"APM","peakUsage":172,"licenseProvisioned":220}],"nonApmModuleDetailViewData":[{"licenseModuleType":"MACHINE_AGENT","peakUsage":31,"licenseProvisioned":220},{"licenseModuleType":"SIM_MACHINE_AGENT","peakUsage":18,"licenseProvisioned":40}],"apmStackGraphViewData":[{"licenseModuleType":"JAVA","peakUsage":142,"licenseProvisioned":0},{"licenseModuleType":"DOT_NET","peakUsage":30,"licenseProvisioned":0}]}
Fields getting created -
But not searchable
Filebeat Inputs along with processors -
filebeat.inputs:
- type: log
enabled: true
paths:
- /opt/logs/LicenseRulesUtil.log
#json.keys_under_root: true
#json.add_error_key: true
#json.overwrite_keys: false
processors:
- decode_json_fields:
fields: ["message"]
process_array: true
target: ""
max_depth: 5
overwrite_keys: true
- timestamp:
field: date
layouts:
- '2006-01-02 15:04:05 PST'
test:
- '2020-11-22 21:55:33 PST'
timezone: "America/Los_Angeles"
exclude_files: ['.gz$']
ignore_older: 72h
fields:
name: appd_license_logs
index: appd_license
environment: prod
fields_under_root: true
Any help appreciated ..
Thanks