Skip to content

Commit

Permalink
Issue #79 replace lograte script in rsyslogd; adjust data-sync (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
instantlinux committed Sep 5, 2023
1 parent dffd32f commit 02d17d1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion images/data-sync/helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ home: https://github.com/instantlinux/docker-tools
sources:
- https://github.com/instantlinux/docker-tools
type: application
version: 0.1.9
version: 0.1.10
appVersion: "2.53.3-4.14.1-r1"
dependencies:
- name: chartlib
Expand Down
2 changes: 2 additions & 0 deletions images/data-sync/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@ configmap:
ignore = Path data-sync/gitlab/logs/sshd/current
ignore = Path data-sync/jira/home/analytics-logs
ignore = Path data-sync/jira/home/log/atlassian-jira.log
ignore = Path data-sync/jira/home/log/atlassian-jira-ipd-monitoring.log
ignore = Path data-sync/jira/home/log/atlassian-jira-outgoing-mail.log
ignore = Path data-sync/jira/home/log/atlassian-jira-perf.log
ignore = Path data-sync/jira/home/log/automation-jira-performance.csv
ignore = Path data-sync/jira/home/monitor/ConnectionPoolGraph.rrd4j
ignore = Path data-sync/jira/home/monitor/DatabaseReadWritesGraph.rrd4j
ignore = Path data-sync/jira/home/plugins/.osgi-plugins/felix/felix-cache
Expand Down
2 changes: 2 additions & 0 deletions images/rsyslogd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ RUN apk add --update gzip logrotate rsyslog=$RSYSLOG_VERSION \
VOLUME /var/log /etc/logrotate.d /etc/rsyslog.d
EXPOSE 514 514/udp
COPY logrotate.conf /etc/logrotate.conf
COPY rsyslog-rotate /etc/logrotate.d/rsyslog

RUN chmod 644 /etc/logrotate.conf

ADD entrypoint.sh /root/
Expand Down
19 changes: 19 additions & 0 deletions images/rsyslogd/rsyslog-rotate
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/var/log/messages
/var/log/auth.log
/var/log/cron.log
/var/log/kern.log
/var/log/mail.log
{
compress
dateext
maxage 365
rotate 45
missingok
notifempty
size +4096k
create 640 root root
sharedscripts
postrotate
/usr/bin/killall -HUP rsyslogd
endscript
}

0 comments on commit 02d17d1

Please sign in to comment.