Description
Type string READONLY
alerttime contains the time when a configured alert was matched by pmlocald. It is not available for use in the policy file, it is set in the event log. To view the event log, use the pmlog command.
Example
#display all alerts raised after 6pm
pmlog -l -c 'alerttime > "18:00:00"'
Description
Type string READONLY
event identifies the type of event logged by the policy server process. An event is logged when the policy server accepts or rejects a command. An event is also logged by the agent when a runcommand completes execution and an alert is raised.
Possible values are:
- Accept
- Reject
- Finish
- AlertRaised
This value is saved in the event log and can be viewed using pmlog.
Example
#Display all accepted events from the audit log
pmlog -c 'event == "Accept"'
Description
Type string READONLY
exitdate is the date the requested command finished running. This is saved in the event log when the session exits, and can be viewed using pmlog.
Example
#Display all events that finished on 15 january 2009
pmlog -c 'exitdate == "2009/01/15"'
Description
Type string READONLY
exitstatus contains the exit status of the runcommand. This variable is not available for use in the policy file. It is logged in the "Finish" event by pmlocald when the session ends.
Example
#Display all sh commands that failed to complete successfully
pmlog -c 'runcommand == "sh" && exitstatus != "Command finished with exit status 0"'