<feed xmlns='http://www.w3.org/2005/Atom'>
<title>vyos-1x.git/data/templates/rsyslog/logrotate.j2, branch feature/T9082-codeql-cpp</title>
<subtitle>VyOS command definitions, scripts, and utilities (mirror of https://github.com/vyos/vyos-1x.git)
</subtitle>
<id>https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp</id>
<link rel='self' href='https://git.amelek.net/vyos/vyos-1x.git/atom?h=feature%2FT9082-codeql-cpp'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/'/>
<updated>2026-02-17T15:37:33+00:00</updated>
<entry>
<title>syslog: T8272: remove dead code from previous "file" logging support</title>
<updated>2026-02-17T15:37:33+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2026-02-17T15:35:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=95bd2ebdcb30246d1f585ccb0336b3f3aa5519c7'/>
<id>urn:sha1:95bd2ebdcb30246d1f585ccb0336b3f3aa5519c7</id>
<content type='text'>
Commit 395e3cb72 ("syslog: T6989: remove 'file' logging destination") removed
CLI support for custom file based logging targets. The code about logrotate
was not removed and just stayed "dead".

Dead code is removed by this commit.
</content>
</entry>
<entry>
<title>T7756: Fix rsyslog configuration generation</title>
<updated>2026-02-10T03:59:37+00:00</updated>
<author>
<name>Adam Schultz</name>
<email>adam.schultz@live.com</email>
</author>
<published>2026-01-24T14:55:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=696df602557dd7b70b353c3b9cfb110c0908a2fe'/>
<id>urn:sha1:696df602557dd7b70b353c3b9cfb110c0908a2fe</id>
<content type='text'>
1.) Fix both syslog and logrotate writing /etc/logrotate.d/vyos-rsyslog
- system_syslog.py generates /etc/logrotate.d/vyos-rsyslog-user for user file
  logrotate
- system_logs.py generates /etc/logrotate.d/vyos-rsyslog using configured
  rotation parameters

2.) Fix /run/rsyslog/rsyslog.conf ignoring configured size for /var/log/messages
- system_syslog.py retrieves "system logs" config to set rotation limits
- default rotation size is now based on configuration defaults

3.) prifilt strings for rsyslog are modified to use override syntax
  (e.g. ";facility.none") when all is combined with other facilities to honor
  per facility user intent

Smoke test changes:

Commonize configuration of syslog facilities
Check that prifilt is sane based on configured facilities (i.e. overides only
    present when required)
Test wildcard (all) only, specific facility only, and wildcard + specific facility
</content>
</entry>
<entry>
<title>syslog: T5366: remove reference to deprecated sysvinit rsyslog script</title>
<updated>2024-07-03T14:02:07+00:00</updated>
<author>
<name>John Estabrook</name>
<email>jestabro@vyos.io</email>
</author>
<published>2024-07-03T13:57:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=977d2fbf7a62a97d98b38cf28e62f08fc9e8d3a2'/>
<id>urn:sha1:977d2fbf7a62a97d98b38cf28e62f08fc9e8d3a2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>T5474: establish common file name pattern for XML conf mode commands</title>
<updated>2023-12-31T22:49:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-12-30T22:25:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=4ef110fd2c501b718344c72d495ad7e16d2bd465'/>
<id>urn:sha1:4ef110fd2c501b718344c72d495ad7e16d2bd465</id>
<content type='text'>
We will use _ as CLI level divider. The XML definition filename and also
the Python helper should match the CLI node.

Example:
set interfaces ethernet -&gt; interfaces_ethernet.xml.in
set interfaces bond -&gt; interfaces_bond.xml.in
set service dhcp-server -&gt; service_dhcp-server-xml.in
</content>
</entry>
<entry>
<title>syslog: T2778: fix invalid handling of logrotate and default values</title>
<updated>2023-07-16T20:03:48+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-07-16T20:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=751d326c7769ac18db69de8f2be39587148be209'/>
<id>urn:sha1:751d326c7769ac18db69de8f2be39587148be209</id>
<content type='text'>
There was no /var/log/messages handler for logrotate making rsyslog
crash after a few days.

In addition we had some JIna2 templating errors for hosts, user and file
CLI nodes

jinja2.exceptions.UndefinedError: 'dict object' has no attribute 'facility'

Looks like therey are used rarely ;) - lucky me!
</content>
</entry>
<entry>
<title>syslog: T2778: migrate to get_config_dict()</title>
<updated>2023-05-08T20:45:53+00:00</updated>
<author>
<name>Christian Breunig</name>
<email>christian@breunig.cc</email>
</author>
<published>2023-05-08T19:27:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/vyos-1x.git/commit/?id=1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940'/>
<id>urn:sha1:1dc79cebc6d27a8f9d2f9ca9c2e0f2fd0809d940</id>
<content type='text'>
</content>
</entry>
</feed>
