Info: Venafi Agent Logging

Info: Venafi Agent Logging

233
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:53 PM


Symptom


Logging for the Venafi Agentcan be configured in two places-On the device and on the Venafi Director server.
Here are the severity levels:
  • debug (threshold 8)
  • informational (threshold 7)
  • notice (threshold 6)
  • warning (threshold 5)
  • error(threshold 4)
  • critical (threshold 3)
  • alert (threshold 2)
  • emergency(threshold 1)
The resulting severity level isdetermined by either configuration settings or a command line override. Once an event is triggered, and it'sthreshold is less than (or equal to) the threshold of the event, then itis stored in the Windowsevent log(or host operating systems syslog) ; otherwise, it is suppressed, ignored ordiscarded.


Three types of events

During startup, we will see three types of events.

  • allocating memory in advance to readthe product's configuration,
  • reading the configuration keys
  • acting on the values that have been read.
Afailure in any of these actions would trigger an event with a certain loggingthreshold. Consider the action of reading a configuration key to find out what thelogging threshold should be, but this key is not set.

An event of the below string would be generated with the severity of debug:

logging threshold not set

However, what if the action to open the configuration database itself failed? Then the event below would be generated with below text, with a severity of error.

open configuration databasefailed

Finally, neither of these actions would evenbe attempted if the initial action of allocating memory for opening and readingthe configuration database failed. In this case the below event would be generated, with a severity of critical:

out of memory

How to configure the thresholds:

The available thresholds are exposed in the Windows User interface, as shown below. These values will be set on the agent after it 'phones home' unless it's been set on the command line.

Agentthresh-logging.jpg

NOTE:the current agent contains three modules, and each has their own logging level. All of which needs to be allocated a threshold to precisely set the overall logging on the agent.

The modules are:

  • "Base Agent"
  • "Cert Scanner" (AKA KeyStore Scanner)
  • "SSH scanner"

To reduce the logging chatter one should lower the level on all the active
modules. IE:
From Agent command line, you can use these commands:
./vagent -m logging=critical
./vagent -n sshscanner logging=critical
./vagent -n ksscanner logging=critical

Or use the appropriate UI control from Win or Web admin, as per the above screenshot.

TIP: The agent's configuration will only change after it makes contact with the Director services, at it's allotted time.

How to list out the current configuration of the agent:

From the agent command line, use this command:

./vagent -l all

Agent-config-show.jpg



Environment


TPP/TLSPDC

Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000qWaCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail