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

syslog-ng-ctl: added counter reset capability #422

Merged
merged 4 commits into from
Mar 25, 2015
Merged

syslog-ng-ctl: added counter reset capability #422

merged 4 commits into from
Mar 25, 2015

Conversation

nvxxu2i
Copy link
Contributor

@nvxxu2i nvxxu2i commented Mar 17, 2015

The statistics counters (see the output of "syslog-ng-ctl stats") now can be reset with syslog-ng-ctl stats --reset.

@nvxxu2i nvxxu2i self-assigned this Mar 17, 2015
@ihrwein
Copy link
Contributor

ihrwein commented Mar 17, 2015

@dnsjts before merging this, please cherry-pick a commit from my branch. It removes some warnings.

commit id: d2e46443892c04d827ffc4c8ef00372a85ea2666
repo: git@github.com:ihrwein/syslog-ng.git
branch: f/stats-counters-reset

@bazsi
Copy link
Collaborator

bazsi commented Mar 17, 2015

The copyright should only include BalaBit. No need to complicate with the sarl part.

… array

Signed-off-by: MÓZES Ádám István <adam.mozes@balabit.com>
MÓZES Ádám István added 3 commits March 25, 2015 11:20
Added the slng_run_command function in order to replace the
send-command-and-fetch-the-result code snippets with a single function
call.
This commit also introduces the usage of this function in the existing
control operations.

Signed-off-by: MÓZES Ádám István <adam.mozes@balabit.com>
With this option the stats counters can be zeroed.

Signed-off-by: MÓZES Ádám István <adam.mozes@balabit.com>
This new test case will test the reset functionality of the statistics
counters.
The test case relies on the success of the following operations:
 * querying the statistics
 * setting the value of a counter to non-zero value

Signed-off-by: MÓZES Ádám István <adam.mozes@balabit.com>
@lbudai
Copy link
Collaborator

lbudai commented Mar 25, 2015

Thanks!

lbudai added a commit that referenced this pull request Mar 25, 2015
syslog-ng-ctl: added counter reset capability
@lbudai lbudai merged commit 804ad91 into syslog-ng:master Mar 25, 2015
@nvxxu2i nvxxu2i deleted the f/stats-counters-reset branch March 25, 2015 12:25
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.

None yet

5 participants