aboutsummaryrefslogtreecommitdiffstats
path: root/docs/sections/logging.rst
blob: 422b70a0ff4e619cb0777d0ce79a1fb85cd23f2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2020 NOKIA

Logging
=======

Certification Service API 
--------------------------


Certification Service logs are available in the Docker container

    docker exec -it aaf-certservice-api bash

Path to logs:

    /var/log/onap/aaf/certservice

Available log files:
    * audit.log
    * debug.log
    * error.log


Certification Service Client
----------------------------
To see logs use :

- Docker: 

.. code-block:: bash
   
   docker logs cert-service-client

- Kubernetes: 
  
.. code-block:: bash
   
   kubectl logs <pod-name> cert-service-client


Logs are stored inside container log path:

  /var/logs

Client application exits with following exit codes:


+-------+------------------------------------------------+
| Code  | Information                                    |
+=======+================================================+
| 0     | Success                                        |
+-------+------------------------------------------------+
| 1     | Invalid client configuration                   |
+-------+------------------------------------------------+
| 2     | Invalid CSR configuration                      |
+-------+------------------------------------------------+
| 3     | Fail in key pair generation                    |
+-------+------------------------------------------------+
| 4     | Fail in CSR generation                         |
+-------+------------------------------------------------+
| 5     | CertService HTTP unsuccessful response         |
+-------+------------------------------------------------+
| 6     | Internal HTTP Client connection problem        |
+-------+------------------------------------------------+
| 7     | Fail in PKCS12 conversion                      |
+-------+------------------------------------------------+
| 8     | Fail in Private Key to PEM Encoding            |
+-------+------------------------------------------------+