nikunjdoshi67 / LogsShipping

This Repository has been created to ship the logs from the Openstack Nodes to ElK
GNU General Public License v3.0
0 stars 0 forks source link

Shell Script to Configure Logging in the Openstack #6

Open nikunjdoshi67 opened 4 years ago

nikunjdoshi67 commented 4 years ago

I was writing shell script that would automatically configure the logging of Openstack Services

In the filebeat.yml We just need to input the path files but the services are stored in conf files so I was thinking in grounds that a shell script will automatically trigger that.

Refer to the script in the file

Openstack_ShellScript_File

I considered that after reading this :

How to confiugre logging in Openstack enviroment? Separately configure the Compute service (nova), the Identity service (keystone), the Image service (glance), and, if you are using it, the Block Storage service (cinder) to send log messages to syslog. Open these configuration files:

/etc/nova/nova.conf /etc/keystone/keystone.conf /etc/glance/glance-api.conf /etc/glance/glance-registry.conf /etc/cinder/cinder.conf In each configuration file, add these lines:

debug = False

use_syslog = True

syslog_log_facility = LOG_LOCAL0

I am not sure whether we should configure a script for that or not

larsks commented 4 years ago

As we discussed on the call yesterday, we don't need to make any changes to the configuration of OpenStack services. They are already configured to log to files under /var/log/containers; we just need to configure filebeat to read those logs.

The documentation you found concerning the location of configuration files (and log files) is incorrect with respect to the MOC environment. Red Hat OpenStack runs in a containerized environment, so configuration files won't be found in /etc on the host.