Index template already created. It runs but doesn''t tell me any error and can't see new index which should be call "fb-message-7.12.0-yyyy.mm.dd"
I notice other issues i'm missing the param to indicate this is a custom json file trying to read, added the Processor part.
Can anybody help? still not telling me what is my issue, trying to load this custom json file to ES using custom index template
test-es.json sample:
{"communication_medium_id":1,"category_name":"Appointment reminders","processed_date":"2020/01/14 00:00:01","message_fk":1182176}
Elasticsearch version 7.12.0
filebeat.yml below:
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/*.log
- /home/test-es.json
# ======================= Elasticsearch template setting =======================
setup.template.overwrite: true
setup.ilm.enabled: false
setup.template.enabled: true
setup.template.name: "fb-message-%{[agent.version]}"
setup.template.pattern: "fb-message-%{[agent.version]}-*"
# ---------------------------- Elasticsearch Output ----------------------------
output.elasticsearch:
# Array of hosts to connect to.
hosts: ["ip:9200"]
index: "fb-message-%{[agent.version]}-%{+yyyy.MM.dd}"
# Protocol - either `http` (default) or `https`.
#protocol: "https"
# Authentication credentials - either API key or username/password.
#api_key: "id:api_key"
username: "xxx"
password: "xxx"
# ================================= Processors =================================
processors:
- decode_json_fields:
fields: ["communication_medium_id","category_name","Appointment","processed_date","message_fk"]
process_array: false
max_depth: 1
target: ""
overwrite_keys: false
add_error_key: true