Skip to content

Commit

Permalink
Update docs to use standard logs dir
Browse files Browse the repository at this point in the history
  • Loading branch information
edewata committed Apr 19, 2024
1 parent ba9e053 commit feb4c3d
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
First, make sure that you have dogtag instance configured.

ls /var/log/pki/pki-tomcat
ls /var/lib/pki/pki-tomcat/logs

Should see ca and possibly kra.

Expand Down
4 changes: 2 additions & 2 deletions wiki/Directory_Structure.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ The upgrade log files are located in /var/log/pki.

== Instance Log Files ==

The instance log files are located in /var/log/pki/<instance>.
The instance log files are located in /var/lib/pki/<instance>/logs.

== Subsystem Log Files ==

The subsystem log files are located in /var/log/pki/<instance>/<subsystem>.
The subsystem log files are located in /var/lib/pki/<instance>/logs/<subsystem>.

= Shared Files =

Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_10.5_Server_Logging.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ logError.fileName=[PKI_INSTANCE_PATH]/logs/[PKI_SUBSYSTEM_TYPE]/error

== Subsystem Self-Test Log ==

Self-test logs are stored in /var/log/pki/pki-tomcat/ca/selftests.log.
Self-test logs are stored in /var/lib/pki/pki-tomcat/logs/ca/selftests.log.

== Subsystem System Log ==

Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_10.5_Subsystem_Debug_Log.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ debug.showcaller=false
== Log Files ==

The logging framework does not support log rotation.
All debug logs will be stored into /var/log/pki/<font color="red">pki-tomcat</font>/<subsystem>/debug.
All debug logs will be stored into /var/lib/pki/pki-tomcat/logs/<subsystem>/debug.

== Log Level ==

Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_10.6_Server_Logging.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ logError.fileName=[PKI_INSTANCE_PATH]/logs/[PKI_SUBSYSTEM_TYPE]/error

== Subsystem Self-Test Log ==

Self-test logs are stored in /var/log/pki/pki-tomcat/ca/selftests.log.
Self-test logs are stored in /var/lib/pki/pki-tomcat/logs/ca/selftests.log.

== Subsystem System Log ==

Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_10.6_Subsystem_Debug_Log.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ By default they are configured as follows:
== Log Files ==

By default log messages will be stored in /var/log/pki/<font color="red">pki-tomcat</font>/<subsystem>/debug.YYYY-MM-DD.log which will be rotated daily.
By default log messages will be stored in /var/lib/pki/pki-tomcat/logs/<subsystem>/debug.YYYY-MM-DD.log which will be rotated daily.

By default it will only keep log messages from the last 7 days.

Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_10_Server_Logging.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ logError.fileName=[PKI_INSTANCE_PATH]/logs/[PKI_SUBSYSTEM_TYPE]/error

== Subsystem Self-Test Log ==

Self-test logs are stored in /var/log/pki/pki-tomcat/ca/selftests.log.
Self-test logs are stored in /var/lib/pki/pki-tomcat/logs/ca/selftests.log.

== Subsystem System Log ==

Expand Down
24 changes: 12 additions & 12 deletions wiki/PKI_Server_File_Permissions.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Notes:
= NSS Database =

<pre>
drwxrwx--- pkiuser pkiuser /etc/pki/pki-tomcat/alias
-rw------- pkiuser pkiuser /etc/pki/pki-tomcat/alias/*
drwxrwx--- pkiuser pkiuser /var/lib/pki/pki-tomcat/conf/alias
-rw------- pkiuser pkiuser /var/lib/pki/pki-tomcat/conf/alias/*
</pre>

Notes:
Expand All @@ -38,16 +38,16 @@ Notes:
= Audit Logs =

<pre>
drwx------ pkiuser.pkiuser /var/log/pki/pki-tomcat/ca/signedAudit
-rw------- pkiuser.pkiuser /var/log/pki/pki-tomcat/ca/signedAudit/*
drwx------ pkiuser.pkiuser /var/log/pki/pki-tomcat/kra/signedAudit
-rw------- pkiuser.pkiuser /var/log/pki/pki-tomcat/kra/signedAudit/*
drwx------ pkiuser.pkiuser /var/log/pki/pki-tomcat/ocsp/signedAudit
-rw------- pkiuser.pkiuser /var/log/pki/pki-tomcat/ocsp/signedAudit/*
drwx------ pkiuser.pkiuser /var/log/pki/pki-tomcat/tks/signedAudit
-rw------- pkiuser.pkiuser /var/log/pki/pki-tomcat/tks/signedAudit/*
drwx------ pkiuser.pkiuser /var/log/pki/pki-tomcat/tps/signedAudit
-rw------- pkiuser.pkiuser /var/log/pki/pki-tomcat/tps/signedAudit/*
drwx------ pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/ca/signedAudit
-rw------- pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/ca/signedAudit/*
drwx------ pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/kra/signedAudit
-rw------- pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/kra/signedAudit/*
drwx------ pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/ocsp/signedAudit
-rw------- pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/ocsp/signedAudit/*
drwx------ pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/tks/signedAudit
-rw------- pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/tks/signedAudit/*
drwx------ pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/tps/signedAudit
-rw------- pkiuser.pkiuser /var/lib/pki/pki-tomcat/logs/tps/signedAudit/*
</pre>

Notes:
Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_Server_System_Log.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ log.instance.System.pluginName=file
log.instance.System.rolloverInterval=2592000
</pre>

By default system logs are stored in /var/log/pki/<instance>/<subsystem>/system.
By default system logs are stored in /var/lib/pki/<instance>/logs/<subsystem>/system.

= References =

Expand Down
2 changes: 1 addition & 1 deletion wiki/PKI_Server_Transaction_Log.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ log.instance.Transactions.pluginName=file
log.instance.Transactions.rolloverInterval=2592000
</pre>

By default transaction logs are stored in /var/log/pki/<instance>/<subsystem>/transactions.
By default transaction logs are stored in /var/lib/pki/<instance>/logs/<subsystem>/transactions.

= References =

Expand Down

0 comments on commit feb4c3d

Please sign in to comment.