The File event publisher writes the output events in XML, text, and JSON formats in the file.
Creating a file output event publisher
For instructions to create a Java Nio based file output event publisher, see Configuring Event Publishers.
Configuring publisher properties
A File output event publisher can be configured in the Management Console as shown below.
The properties configured above are described in the table below.
Configuration file property
The absolute path of the file to write the data.
|Buffer Size||The buffer size allocated for each event.|
After entering the above publisher properties, click Advanced and do the following.
- Select the event stream to which you want to map the incoming events.
- Select the message format in which the events should be received.
- Define custom output mappings based on the message format you selected.
For more information, see Output Mapping Types.
You can also configure the properties mentioned above based on the transport type within the
<from> element of the event publisher configuration in the
<PRODUCT_HOME>/repository/deployment/server/eventpublishers/ directory as shown below.