Good afternoon,
I'm trying to customize the "output" filter to break the logs by "type-date".
The configuration file warns you, it MUST not be modified manually;
For it will be rewritten (vim /usr/local/nagioslogserver/logstash/etc/conf.d/999_outputs.conf)
I'm trying to add a global configuration, through the interface "Global Configuration" >> "Outputs". So that the indexes creation pattern is:
output {
elasticsearch {
index => "%{type}-%{+YYYY.MM.dd}"
}
}
For the configuration does not pass the validation.
How can I configure the output for this?
Without having the risk of the settings being lost, if someone added new filters via the dashboard.
If I configure it manually, it works. Well, I'm going to have problems with the first filter change that is performed on the panel.
Code: Select all
vim /usr/local/nagioslogserver/logstash/etc/conf.d/999_outputs.conf
index => "%{type}-%{+YYYY.MM.dd}"
------------
#
# Logstash Configuration File
# Dynamically created by Nagios Log Server
#
# DO NOT EDIT THIS FILE. IT WILL BE OVERWRITTEN.
#
# Created Fri, 07 Jul 2017 14:22:11 -0300
#
#
# Required output for Nagios Log Server
#
output {
elasticsearch {
cluster => '93f3e418-f86d-4d96-a812-1a8b50e3027d'
host => 'localhost'
document_type => '%{type}'
node_name => '3a6aa95d-8e0e-4a97-9623-0a10ccfad7d6'
protocol => 'transport'
workers => 4
index => "%{type}-%{+YYYY.MM.dd}"
}
}
#
# Global outputs
#
#
# Local outputs
#
------------