Creating custom logging event definitions
Out of the box, Palo Alto Networks Trust Protection Foundation provides an extensive list of event definitions, however if you find that you need an event definition that is not available you can create your own definitions. For example, if you are a third-party developer, you may want to create logging events tied to the features you are developing.
Event definitions describe the ongoing progress about Palo Alto Networks or your own add-applications. When an event fires, the Logging application formats the event and it appears on a Policy folder General tab and in a MSSQL Logging channel, such as the Default SQL Channel. When you upgrade to a future version of Trust Protection Foundation, any add-on events automatically migrate.
IMPORTANT We strongly recommend that you avoid making changes directly to the Log schema for events. Instead, you can customize log events that appear in the Tools > Event Definitions node of the Trust Protection Foundation Configuration Console (or the Logging MMC snapin). For more information, see Customizing event definitions.
When adding your own logging events:
- Make sure each add-on has its own unique Group ID. Use the reserved decimal range of
0200-0299. - EventIDs must be unique. For example, you can use Group ID
0200and assign EventIDs from0200000through0200FFFF. -
Comma separate each field and leave unnecessary fields blank.
-
Use macros to allow the Logging application to add dynamic information. For more information, see Using the $Event.Formatter$ macro. For example:
02001FAF,Custom App - Certificate Expiration Processing,,,,,,,,,,,"Service module for the engine $CN [$EHvent.Component$]$ is examining certificates for expiration."
When this event triggers, the Log server records the following event:
127.0.0.1, 17/08/2009 22:17:42: Service module for the engine Jupiter is examining certificates for expiration.