Skip to content

Commit

Permalink
Configure rsyslog to push to promtail
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevinjil committed Oct 6, 2024
1 parent 0b0ee14 commit 784a6b2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.* @127.0.0.1:1514
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
---
- name: Restart rsyslog
service:
name: rsyslog
enabled: true
state: restarted

- name: Restart promtail
service:
name: promtail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,15 @@
mode: 0644
notify: Restart promtail

- name: Setup promtail push
copy:
src: 71-push.conf
dest: /etc/rsyslog.d/
mode: 0655
owner: root
group: root
notify: Restart rsyslog

- name: Setup promtail systemd
copy:
src: promtail.service
Expand Down

0 comments on commit 784a6b2

Please sign in to comment.