Raxol.Audit.Exporter (Raxol v2.0.1)

View Source

Exports audit logs in various formats for compliance reporting and SIEM integration.

Supported formats:

  • JSON (for programmatic processing)
  • CSV (for spreadsheet analysis)
  • CEF (Common Event Format for SIEM)
  • LEEF (Log Event Extended Format)
  • Syslog (RFC 5424)
  • PDF (for compliance reports)

Summary

Types

export_format()

@type export_format() :: :json | :csv | :cef | :leef | :syslog | :pdf | :xml

export_options()

@type export_options() :: %{
  optional(:compress) => boolean(),
  optional(:encrypt) => boolean(),
  optional(:sign) => boolean(),
  optional(:include_metadata) => boolean(),
  optional(:template) => String.t()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

export(format, filters, opts \\ [])

Exports audit events in the specified format.

generate_compliance_report(exporter \\ __MODULE__, framework, time_range, opts \\ [])

Generates a compliance report.

handle_manager_cast(msg, state)

Callback implementation for Raxol.Core.Behaviours.BaseManager.handle_manager_cast/2.

schedule_export(exporter \\ __MODULE__, schedule_config)

Schedules a recurring export.

send_to_siem(exporter \\ __MODULE__, events, siem_config)

Sends audit events to a SIEM system.

start_link(init_opts \\ [])