Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reverted] add logrotate config for pgbouncer and filebeat input #921 #1823

Merged
merged 3 commits into from
Nov 13, 2020

Conversation

ar3ndt
Copy link
Contributor

@ar3ndt ar3ndt commented Nov 3, 2020

No description provided.

@ar3ndt ar3ndt requested review from plirglo and mkyc November 3, 2020 16:43
@ar3ndt ar3ndt changed the title add logrotate config for pgbouncer and filebeat input add logrotate config for pgbouncer and filebeat input #921 Nov 3, 2020
enabled: true
paths:
- /var/log/pgbouncer/*.log*
exclude_files: [".gz$"]
{% endif %}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a posibility to use multiline for pgbouncer as well. Dont forget about update docs. Thanks.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pgbouncer logs do not seem to generate multilines. Do you think it is neccessary anyways then?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I don't know the structure of pgbouncer logs. It would be good to have this as an option (not enabled by default) as we already provided it for postgresql logs. So maybe let's involve someone else in discussion.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked on Ubuntu, there is no any multi-line entry in log, even after changing verbose = 0 to verbose = 2.

rafzei
rafzei previously approved these changes Nov 10, 2020
@atsikham
Copy link
Contributor

atsikham commented Nov 10, 2020

IDK if someone is going to review that, but for me it's ok to add multiline support later when/if it will be necessary.

atsikham
atsikham previously approved these changes Nov 10, 2020
@ar3ndt ar3ndt dismissed stale reviews from atsikham and rafzei via badfe57 November 10, 2020 14:34
Copy link
Contributor

@atsikham atsikham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@atsikham atsikham requested a review from rafzei November 12, 2020 11:24
Copy link
Contributor

@rafzei rafzei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ar3ndt ar3ndt merged commit 58652e2 into hitachienergy:develop Nov 13, 2020
copytruncate
size 10M
daily
create 0640 pgbouncer pgbouncer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Ubuntu we do not have such user:

id pgbouncer
id: ‘pgbouncer’: no such user

create 0640 pgbouncer pgbouncer
nodateext
postrotate
/bin/kill -HUP cat /run/pgbouncer/pgbouncer.pid 2>/dev/null 2> /dev/null || true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On Ubuntu the pidfile path is different:

grep pidfile /etc/pgbouncer/pgbouncer.ini
pidfile = /var/run/postgresql/pgbouncer.pid

@@ -121,3 +121,16 @@ specification:
# to have multiple unique filenames per day when dateext option is set
dateformat -%Y%m%dH%H
}
/var/log/pgbouncer/pgbouncer.log {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On RHEL there is already existing configuration in /etc/logrotate.d/pgbouncer so this one duplicates it.

@sk4zuzu
Copy link
Contributor

sk4zuzu commented Nov 13, 2020

Guise, pls take into account @to-bar 's review and create another PR with fixes. 🙄

@to-bar
Copy link
Contributor

to-bar commented Nov 13, 2020

This PR has to be rewritten so I decided to revert it. See comments.

to-bar added a commit that referenced this pull request Nov 13, 2020
@to-bar to-bar changed the title add logrotate config for pgbouncer and filebeat input #921 [Reverted] add logrotate config for pgbouncer and filebeat input #921 Nov 13, 2020
rafzei pushed a commit to rafzei/epiphany that referenced this pull request Nov 26, 2020
… (hitachienergy#1823)

* add logrotate config for pgbouncer and filebeat input
rafzei pushed a commit to rafzei/epiphany that referenced this pull request Nov 26, 2020
toszo pushed a commit to toszo/epiphany that referenced this pull request Dec 5, 2020
… (hitachienergy#1823)

* add logrotate config for pgbouncer and filebeat input
toszo pushed a commit to toszo/epiphany that referenced this pull request Dec 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants