-
Notifications
You must be signed in to change notification settings - Fork 12
Man Pages editing #242
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
Open
zsoltgyulai94
wants to merge
5
commits into
syslog-ng:master
Choose a base branch
from
zsoltgyulai94:doc-align-man-pages
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Man Pages editing #242
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bfde1b7
Started aligning man pages.
zsoltgyulai94 78f79b5
Edited man pages forfuture porting.
zsoltgyulai94 ff1b201
Edits based on review.
zsoltgyulai94 3237f96
Adjustments based on review.
zsoltgyulai94 7d1a417
More adjustments.
zsoltgyulai94 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,18 +15,18 @@ description: >- | |
| {{ site.product.short_name }}. | ||
| --- | ||
|
|
||
| ## Synopsis | ||
| ## SYNOPSIS | ||
|
|
||
| dqtool \[command\] \[options\] | ||
| dqtool [command] [options] | ||
|
|
||
| ## Description | ||
| ## DESCRIPTION | ||
|
|
||
| {% include doc/admin-guide/manpages-intro.md %} | ||
|
|
||
| The dqtool application is a utility that can be used to display and | ||
| format the messages stored in a disk-buffer file. | ||
|
|
||
| ## The cat command | ||
| ## THE CAT COMMAND | ||
|
|
||
| ```bash | ||
| cat [options] [file] | ||
|
|
@@ -41,40 +41,41 @@ particular log messages, for example, **dqtool cat /var/log/messages.lgs | |
|
|
||
| The cat command has the following options: | ||
|
|
||
| - \--debug or -d | ||
| `--debug` or `-d` | ||
|
|
||
| Print diagnostic and debugging messages to stderr. | ||
|
|
||
| - \--help or -h | ||
| `--help` or `-h` | ||
|
|
||
| Display a brief help message. | ||
|
|
||
| - \--template=\<template\> or -t | ||
| `--template=<template>` or `-t` | ||
|
|
||
| Format the messages using the specified template. | ||
|
|
||
| - \--verbose or -v | ||
| `--verbose` or `-v` | ||
|
|
||
| Print verbose messages to stderr. | ||
|
|
||
| - \--version or -V | ||
| `--version` or `-V` | ||
|
|
||
| Display version information. | ||
|
|
||
| ### Example: The cat command | ||
| ### EXAMPLE: | ||
|
|
||
| ```bash | ||
| ./dqtool cat ../var/syslog-ng-00000.qf | ||
| /opt/syslog-ng/bin/dqtool/dqtool cat ../var/syslog-ng-00000.qf | ||
zsoltgyulai94 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| The output looks like: | ||
|
|
||
| ```config | ||
| >Disk-buffer state loaded; | ||
| >filename='../var/syslog-ng-00000.qf', qout_length='65', qbacklog_length='0', qoverflow_length='9205', qdisk_length='0' | ||
| >Mar 3 10:52:05 tristram localprg[1234]: seq: 0000011630, runid: 1267609923, stamp: 2010-03-03T10:52:05 PADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADD | ||
| >Mar 3 10:52:05 tristram localprg[1234]: seq: 0000011631, runid: 1267609923, stamp: 2010-03-03T10:52:05 PADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADDPADD | ||
| ``` | ||
|
|
||
| ## The relocate command | ||
| ## THE RELOCATE COMMAND | ||
|
|
||
| ```config | ||
| relocate [options] [files] | ||
|
|
@@ -86,44 +87,44 @@ disk-queue) files. Note that this option modifies the persist file. Stop | |
|
|
||
| The relocate command has the following options: | ||
|
|
||
| - \--all or -a | ||
| `--all` or `-a` | ||
|
|
||
| Relocate every disk-buffer file that is listed in the {{ site.product.short_name }} | ||
| persist file. | ||
|
|
||
| - \--new\_path or -n | ||
| `--new_path` or `-n` | ||
|
|
||
| The directory where you want to move the disk-bufffer files. For | ||
| example: /var/disk-buffers | ||
|
|
||
| - \--persist or -p | ||
| `--persist` or `-p` | ||
|
|
||
| The path to the {{ site.product.short_name }} persist file. The relocate command | ||
| automatically updates the entries of the disk-buffer files in the | ||
| persist file. | ||
|
|
||
| ### Examples | ||
| ### EXAMPLES: | ||
|
|
||
| Relocate a single queue file: | ||
|
|
||
| ```bash | ||
| bin/dqtool relocate --new_path /tmp/dq --persist var/syslog-ng.persist /tmp/syslog-ng-00000.rqf | ||
| /opt/syslog-ng/bin/dqtool relocate --new_path /tmp/dq --persist var/syslog-ng.persist /tmp/syslog-ng-00000.rqf | ||
|
||
| ``` | ||
|
|
||
| Relocate multiple queue files: | ||
|
|
||
| ```bash | ||
| bin/dqtool relocate --new_path /tmp/dq --persist var/syslog-ng.persist /tmp/syslog-ng-00000.rqf /tmp/syslog-ng-00001.rqf | ||
| /opt/syslog-ng/bin/dqtool relocate --new_path /tmp/dq --persist var/syslog-ng.persist /tmp/syslog-ng-00000.rqf /tmp/syslog-ng-00001.rqf | ||
zsoltgyulai94 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| Relocate every queue file: | ||
|
|
||
| ```bash | ||
| bin/dqtool relocate --new_path /tmp/dq --persist var/syslog-ng.persist --all | ||
| /opt/syslog-ng/bin/dqtool relocate --new_path /tmp/dq --persist var/syslog-ng.persist --all | ||
zsoltgyulai94 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ## Files | ||
| ## FILES | ||
|
|
||
| dqtool | ||
| /opt/syslog-ng/bin/dqtool | ||
|
|
||
| {% include doc/admin-guide/manpages-footnote.md %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.