Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Adding a custom security event

Updated on July 1, 2021

The Security Event Configuration landing page might not have all the events you want to monitor. However, you can define custom security events that are specific for your application in order to monitor them in the logs.

  1. In the navigation panel, click RecordsTechnicalActivity.
  2. Open the activity that processes the action or event you want to monitor.
  3. Click Check out.
  4. On the Steps tab do one of the following actions:
    • If a Java step does not exist, click Add a step to insert a Java step where you want to log the event.
    • If a Java step exists, click the Arrow icon to the left of the Method field to expand the Method Parameters section for the Java method.
  5. In the Method Parameters section, enter the following call to the API: tools.getSecEventLogger().logCustomEvent(PublicAPI tools, String eventType, String outcome, String message, Map<String, String> customFlds) with the following parameter values.
    • eventType – Name of the event type to keep track of custom events
    • outcome – The outcome of the event
    • message – Any message that a user needs to log as part of the event
    • customFlds – A map of key-value pairs that log extra information for the event
    Note: Add the call to the API at the end of the section if a Java step exists.
  6. Click Save as.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us