This document discusses Alfresco's audit component and how it extracts and generates data. It describes how data producers generate data independently along predefined paths and how data extractors transform or output data. It also discusses how the audit query can retrieve audit application data through customizable queries and optional parameters. Finally, it briefly introduces syslog configuration, how to configure log4j to send audit logs to syslog, and logrotate for rotating logs.
4. Data Producers
PathMapping
• The data generate by “data producers” are passing to application
through the path mappings
Application
• An application define how data is mapped, extracted, and recorded
without affecting data required by other applications
6. Data extractors and data generators
Data Generator
• A DataGenerator is a component that produces data without any input i.e. data is
produced when a data path is active, but is independent of the values at that
path.
Data Extractor
• A DataExtractor is a component that uses input data to produce some output,
either transforming the data or merely outputting the data verbatim
7. AuditQuery
Consult each audit application component by a
customizable query
Normal query (all results)
•curl -u <admin user>:<password>
"http://<hostname>:<port>/alfresco/service/api/audit/query/<application name>?
verbose=true
Optional parameters
•forward (true|false), sorted upward (true)/ downward (false) by date time
•limit (true|false), limit the number of results.
•toId, return the results until id specified
•value, the value to filter
•fromTime/toTime, returns the result by the time interval specified (millisecond)