# Event logs as AI training data: ERP audit trails explained

Canonical: https://refer.sourcex.si/data-types/event-logs-ai-training-data
Last updated: 2026-11-03

Event logs are useful AI training data because they record real process flows step by step: who approved, changed or released a record, when, and what happened next. ERP audit trails, approval histories and ticket status logs show agent builders the actual sequence, delays, rework and outcomes behind business processes, provided personal data is de-identified and the client controls scope.

## Why do AI agent builders want event logs?

Because an event log is a step-by-step record of real work. Each entry captures a case, an activity, a timestamp, a user and often the values before and after a change. An invoice's log reads like a script: received, matched to the purchase order, price variance flagged, routed to the controller, approved two days later, paid. For a model learning to run that workflow, the log is ground truth about sequence, timing and outcome, which no SOP can supply.

Process-mining teams already work with this structure of case ID, activity and timestamp, and [what is process mining?](/questions/what-is-process-mining) explains the method. What logs lack is the reason behind each step. They are strongest when buyers can read them next to the documents, comments and email attached to the same records, alongside the other material covered in [what counts as AI training data](/proof/what-is-ai-training-data).

## Which logs carry the most value?

Logs that record decisions and outcomes beat logs that record clicks.

| Log type | Typical systems | Typical fields | What it teaches an agent |
|---|---|---|---|
| Approval workflow history | ERP purchasing and payables, expense tools | Approver, step, decision, time, comment | Who really approves what, and how escalations run |
| Document status history | Order-to-cash and procure-to-pay modules | Status, user, time, document number | The true sequence and the waiting time between steps |
| Field-level audit trail | ERP and CRM change history | Field, old value, new value, user, time | Corrections, overrides and rework |
| Ticket status and assignment history | IT service management and support desks | Status, assignee, group, SLA timers | Triage, handoffs, escalation and resolution paths |
| Workflow and integration job logs | Workflow engines, EDI and integration tools | Job, error, retry, resolution | How failures are detected and fixed |
| Session and access logs | Identity and security tools | Login, IP address, device | Little training value and high sensitivity, so usually excluded |

## What separates useful logs from noise?

- **Case continuity:** SourceX licenses business data directly from companies and pays them for it. We are their counterparty from agreement through delivery and payment.
- **Outcomes:** end states such as paid, shipped, credited, closed or reopened let buyers label success and failure.
- **Comments and reason codes:** a rejection with a reason teaches far more than a bare status change.
- **Depth:** several years of history, ideally spanning system changes, show how processes evolved.
- **Cross-system links:** the same order visible in ERP, CRM and the support desk shows the whole workflow rather than a slice.

Screen-level detail of the same work can come from recordings; see [screen recordings and SOP walkthrough videos](/data-types/screen-recordings-ai-training-data).

## How far back do event logs usually go?

Usually less far than clients assume. Audit logging is often switched on per table or field, retention may be set short to save storage, and archive or purge jobs can strip detail from closed periods. When a client migrates, history often stays behind in the old instance unless someone exports it. Limits differ by product, edition and configuration, so check the client's own settings and the vendor's documentation rather than relying on rules of thumb.

ERP projects create natural moments to raise preservation:

| Project moment | What to raise with the client |
|---|---|
| Upgrade or re-implementation | Will full audit and approval history be exported before cut-over? |
| Archiving or purge project | Can detail be kept in an export before records are purged? |
| Audit-trail configuration | Are core documents logged, with comments or reason codes? |
| Process-mining pilot | Who owns the extracted event log, and how far back does it reach? |
| Instance consolidation after an acquisition | What happens to the acquired company's logs and old instance? |

## Which de-identification and scoping questions should you raise?

Raise them as questions for the client's sponsor and counsel, never as decisions you make yourself. They shape what can be licensed and how much preparation it needs.

| Question | Why it matters | Who answers |
|---|---|---|
| Which user names and IDs appear in the logs? | Employee identities are personal data; actors are commonly pseudonymized | The client, agreed with SourceX before work begins |
| Do free-text comments hold customer or employee details? | Notes fields are where names, phone numbers and payment details hide | The data owner for each system |
| Are any records processed for someone else? | Outsourcers and service providers often hold clients' data they cannot license | The client and its contracts |
| Are people in the EU or California in the data? | Privacy laws may apply, depending on the facts | The client's counsel |
| Are bank-detail or payment changes logged? | These fields are masked or excluded | The controller and counsel |
| Are security and access logs in scope? | Low value and high risk, so normally excluded | The IT or security lead |

On the privacy question, the [GDPR](https://eur-lex.europa.eu/eli/reg/2016/679/oj) governs processing of personal data and can apply to organizations outside the EU that offer goods or services to, or monitor the behavior of, people in the EU. In California, the [CCPA](https://oag.ca.gov/privacy/ccpa) applies to for-profit businesses doing business in the state that meet any one of its thresholds. Which rules apply depends on the client's facts, and SourceX agrees the de-identification approach with the client before any work starts.

This is general information, not legal, tax or financial advice. Confirm with your own counsel before acting.

## Your system access is not part of the referral

ERP consultants often hold administrator credentials to a client's system. Those credentials exist for the project you were hired to deliver. As a referral partner you never run exports, pull sample logs or describe record contents to SourceX or anyone else. The client's sponsor works with SourceX directly on the inventory, and data moves only after a signed agreement and the client's authorization.

## How do you recognize a client with deep event history?

- [ ] The ERP or ticketing system has run for several years, or retired instances were kept.
- [ ] Approvals run through configured workflows rather than email alone.
- [ ] Audit or change history is switched on for core documents.
- [ ] Status changes carry comments or reason codes.
- [ ] Document numbers connect ERP records to CRM, ticketing and email.
- [ ] The client is a company in the U.S., Canada, the EU, the UK, Australia, New Zealand, India, Singapore, South Africa, Latin America, the UAE or Saudi Arabia (outside the U.S., Canada and the EU, at least 70% of the data must be in English) with 50+ full-time employees at peak (contractors excluded) and an owner or executive who could sponsor a license.

The [company fit checker](/tools/company-fit-checker) runs a preliminary screen; its result is not an approval.

> "Before cut-over, let's export the full audit and approval history. Apart from compliance, some companies license that kind of process history to SourceX for a one-time payment. You keep ownership and decide what's included. Want me to introduce you?"

A reward becomes payable after SourceX has paid the referred company under its signed agreement and the payout conditions in the program terms are met, including finance approval and your tax and payment details. The reward rate is the greater of $50,000 plus 5% and 15% of Actual Supplier Payout. There is no cap per referred company. Rewards are not guaranteed. If you advise on implementations, [referral opportunities for ERP consultants](/for/erp-consultants) covers project timing and client conversations in more depth.

## Next step

Pick one client with an upgrade or migration on the calendar and run the checklist. If it fits, [register as a partner](/register) and send the sponsor your referral link; [how it works](/how-it-works) shows each step from inventory to payment.

## Sources

- https://eur-lex.europa.eu/eli/reg/2016/679/oj
- https://oag.ca.gov/privacy/ccpa
