<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.openstack.org/w/index.php?action=history&amp;feed=atom&amp;title=OpsGuide-Logging-RSysLog</id>
		<title>OpsGuide-Logging-RSysLog - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.openstack.org/w/index.php?action=history&amp;feed=atom&amp;title=OpsGuide-Logging-RSysLog"/>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=OpsGuide-Logging-RSysLog&amp;action=history"/>
		<updated>2026-07-08T12:49:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.2</generator>

	<entry>
		<id>https://wiki.openstack.org/w/index.php?title=OpsGuide-Logging-RSysLog&amp;diff=156104&amp;oldid=prev</id>
		<title>Cmorgan2: trial content to see how the conversion is going</title>
		<link rel="alternate" type="text/html" href="https://wiki.openstack.org/w/index.php?title=OpsGuide-Logging-RSysLog&amp;diff=156104&amp;oldid=prev"/>
				<updated>2017-08-18T20:08:30Z</updated>
		
		<summary type="html">&lt;p&gt;trial content to see how the conversion is going&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= rsyslog =&lt;br /&gt;
&lt;br /&gt;
A number of operating systems use rsyslog as the default logging service. Since it is natively able to send logs to a remote location, you do not have to install anything extra to enable this feature, just modify the configuration file. In doing this, consider running your logging over a management network or using an encrypted VPN to avoid interception.&lt;br /&gt;
&lt;br /&gt;
== rsyslog client configuration ==&lt;br /&gt;
&lt;br /&gt;
To begin, configure all OpenStack components to log to the syslog log file in addition to their standard log file location. Also, configure each component to log to a different syslog facility. This makes it easier to split the logs into individual components on the central server:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;nova.conf&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;use_syslog=True&lt;br /&gt;
syslog_log_facility=LOG_LOCAL0&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;glance-api.conf&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;glance-registry.conf&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;use_syslog=True&lt;br /&gt;
syslog_log_facility=LOG_LOCAL1&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;cinder.conf&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;use_syslog=True&lt;br /&gt;
syslog_log_facility=LOG_LOCAL2&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;keystone.conf&amp;lt;/code&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;ini&amp;quot;&amp;gt;use_syslog=True&lt;br /&gt;
syslog_log_facility=LOG_LOCAL3&amp;lt;/source&amp;gt;&lt;br /&gt;
By default, Object Storage logs to syslog.&lt;br /&gt;
&lt;br /&gt;
Next, create &amp;lt;code&amp;gt;/etc/rsyslog.d/client.conf&amp;lt;/code&amp;gt; with the following line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;sourceCode none&amp;quot;&amp;gt;*.* @192.168.1.10&amp;lt;/pre&amp;gt;&lt;br /&gt;
This instructs rsyslog to send all logs to the IP listed. In this example, the IP points to the cloud controller.&lt;br /&gt;
&lt;br /&gt;
== rsyslog server configuration ==&lt;br /&gt;
&lt;br /&gt;
Designate a server as the central logging server. The best practice is to choose a server that is solely dedicated to this purpose. Create a file called &amp;lt;code&amp;gt;/etc/rsyslog.d/server.conf&amp;lt;/code&amp;gt; with the following contents:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre class=&amp;quot;sourceCode none&amp;quot;&amp;gt;# Enable UDP&lt;br /&gt;
$ModLoad imudp&lt;br /&gt;
# Listen on 192.168.1.10 only&lt;br /&gt;
$UDPServerAddress 192.168.1.10&lt;br /&gt;
# Port 514&lt;br /&gt;
$UDPServerRun 514&lt;br /&gt;
&lt;br /&gt;
# Create logging templates for nova&lt;br /&gt;
$template NovaFile,&amp;amp;quot;/var/log/rsyslog/%HOSTNAME%/nova.log&amp;amp;quot;&lt;br /&gt;
$template NovaAll,&amp;amp;quot;/var/log/rsyslog/nova.log&amp;amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Log everything else to syslog.log&lt;br /&gt;
$template DynFile,&amp;amp;quot;/var/log/rsyslog/%HOSTNAME%/syslog.log&amp;amp;quot;&lt;br /&gt;
*.* ?DynFile&lt;br /&gt;
&lt;br /&gt;
# Log various openstack components to their own individual file&lt;br /&gt;
local0.* ?NovaFile&lt;br /&gt;
local0.* ?NovaAll&lt;br /&gt;
&amp;amp;amp; ~&amp;lt;/pre&amp;gt;&lt;br /&gt;
This example configuration handles the nova service only. It first configures rsyslog to act as a server that runs on port 514. Next, it creates a series of logging templates. Logging templates control where received logs are stored. Using the last example, a nova log from c01.example.com goes to the following locations:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/var/log/rsyslog/c01.example.com/nova.log&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;/var/log/rsyslog/nova.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is useful, as logs from c02.example.com go to:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;/var/log/rsyslog/c02.example.com/nova.log&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;/var/log/rsyslog/nova.log&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This configuration will result in a separate log file for each compute node as well as an aggregated log file that contains nova logs from all nodes.&lt;/div&gt;</summary>
		<author><name>Cmorgan2</name></author>	</entry>

	</feed>