-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: updated Logging, Environment Variables, Setup and Deployment do…
…cs. (#524) * rearranging setup docs * docs: updated logging docs, added new log envvars * docs: a few more changes to setup, log docs.
- Loading branch information
Showing
49 changed files
with
409 additions
and
290 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
45 changes: 36 additions & 9 deletions
45
docs/_build/html/_sources/installation-and-setup/logging.rst.txt
This file contains 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 |
---|---|---|
@@ -1,26 +1,53 @@ | ||
.. _logging: | ||
|
||
|
||
STIG Manager Logging | ||
Logging | ||
######################################## | ||
|
||
|
||
STIG Manager writes all log entries to STDOUT. Use the ``docker logs`` or equivalent container engine command to view them. | ||
STIG Manager writes all log entries to STDOUT. How you capture and persist these log entries will depend on your Organizational requirements. | ||
|
||
|
||
How you capture and persist these log entries will depend on your Organizational requirements. | ||
.. rubric:: Log format | ||
|
||
The API implements a structured logging format in JSON, and supports several logging levels and modes. | ||
|
||
|
||
Log entries will conform to the following JSON schema: | ||
|
||
.. code-block:: yaml | ||
type: object | ||
properties: | ||
date: | ||
type: string | ||
level: | ||
type: integer | ||
component: | ||
type: string | ||
type: | ||
type: string | ||
data: | ||
type: object | ||
required: | ||
- date | ||
- level | ||
- component | ||
- type | ||
- data | ||
.. rubric:: Log format | ||
HTTP transactions handled by the API are logged to STDOUT following the Apache Common Log Format. Fields are in this order: | ||
The ``data`` object is extensible and will contain structured details concerning the event. | ||
|
||
``:remote-addr :forwarded-for :token-user [:date[clf]] ":method :url HTTP/:http-version" :status :res[content-length]`` | ||
The contents of the logs can be controlled with the following :ref:`Environment Variables`: | ||
|
||
At startup log entries may be preceded by labels such ``[AUTH]`` or ``[DB]`` indicating the portion of the API that is attempting to establish itself. | ||
STIGMAN_LOG_LEVEL | ||
- Default: ``3`` | ||
- Controls the granularity of the generated log output, from 1 to 4. Each level is inclusive of the ones before it. Level 1 will log only errors, level 2 includes warnings, level 3 includes status and transaction logs, and level 4 includes debug-level logs. | ||
|
||
STIGMAN_LOG_MODE | ||
- Default: ``combined`` | ||
- Controls whether the API will create one "combined" log entry for http requests that includes both the request and response information; or two separate log entries, one for the request and one for the response, that can be correlated via a generated Request GUID in each entry. Any value other than "combined" will produce separate log entries. | ||
|
||
.. note:: | ||
The logging conventions currently implemented are candidates for future development. | ||
|
2 changes: 1 addition & 1 deletion
2
docs/_build/html/_sources/installation-and-setup/reverse-proxy.rst.txt
This file contains 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.. _reverse-proxy: | ||
|
||
|
||
STIG Manager TLS | ||
Deploy with TLS | ||
######################################## | ||
|
||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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.