Send Scaleway logs to LogPulse
Scaleway Audit Trail: every change through the console, CLI, API and Terraform (IAM, API keys, Kubernetes, Instances, security groups, databases) and the sign-ins to the console.
Configure → Sources → Cloud. LogPulse reads the Scaleway Audit Trail API itself, without an agent. Events land in the audit, iam indexes with source scaleway and fill the Change, Authentication data models.Overview
- Scaleway Audit Trail API to Integration poller
- Integration poller to index=audit
- Integration poller to index=iam
LogPulse signs in to Scaleway with the credential you give it and fetches new events every five minutes by default. You can set the interval per integration, from one minute to 24 hours.
What you need
- A Scaleway organization
- An IAM application with AuditTrailReadOnly and an API key for it
- In LogPulse: a role that may manage API keys. Cloud integrations fall under that right.
1. Create a credential in Scaleway
| Field in LogPulse | Where you find it |
|---|---|
| Organization ID | In the Scaleway console under Organization settings. |
| Secret key | The secret key of an API key for an IAM application with the AuditTrailReadOnly permission set on the organization. Stored encrypted and never shown again. |
| Regions (optional) | Leave empty for fr-par and nl-ams. Audit Trail keeps the events of each region in that region. |
2. Add the integration in LogPulse
Go to Configure → Sources → Cloud and choose Scaleway. Fill in the fields, tick the data sources you want and save. LogPulse first tests the connection with your credential and tells you what is wrong when it fails.
What arrives
| Data source | Index | Source | Sourcetype | What it holds |
|---|---|---|---|---|
| Audit events | audit | scaleway | scaleway:audit_trail:event | Who changed which resource in which project, with the method, address, user agent and result. |
| Sign-ins | iam | scaleway | scaleway:audit_trail:authentication | Sign-ins to the Scaleway console: who, how, from where and whether it worked. |
The index is the kind of data and the source is the product, so detection rules for that kind of data find Scaleway without changes.
Fields and data models
| Data model | What you get |
|---|---|
| Change | Who changed which resource, with method, project, address and result. |
| Authentication | Console sign-ins with user, method, src_ip, country and result. |
Field names follow the CIM field names. These are the fields LogPulse sets on Scaleway events; a field is left out when Scaleway did not send a value.
actionappauthentication_methoddesthttp_user_agentidmfa_typeobjectobject_categoryobject_idreasonrequest_idservicesignaturesrc_countrysrc_ipstatusstatus_codeuseruser_idvendor_accountvendor_projectvendor_region
The original record of Scaleway is kept with each event under raw, so nothing the vendor sent is lost.
3. Check the data
The first events arrive within a few minutes. Check what came in:
earliest=-1h index IN (audit, iam) source IN (scaleway)
| stats count by index, source, sourcetypeThe integration page in LogPulse shows when it last read events and the last error, if any.
Troubleshooting
The connection test names what is wrong. These are the answers you are most likely to see.
| What you see | What to do |
|---|---|
| Scaleway refused the secret key. Check that the API key still exists. | Create a new API key for the IAM application and paste its secret key, not the access key (SCW…). |
| The API key may not read Audit Trail. Give its IAM application the AuditTrailReadOnly permission set on the organization. | In IAM, add a policy to the application with AuditTrailReadOnly, scoped to the organization (not to one project). |
| regions are fr-par, nl-ams or pl-waw, separated by commas | Leave the field empty for fr-par and nl-ams, or list only the regions you use. |
| The test passes but no events arrive. | Run the search above over a longer time. No results: check on the integration page that the data source is switched on and when it last read events. Scaleway may also simply have had nothing new. |
Frequently asked questions
- How do I send Scaleway logs to LogPulse?
- Add the Scaleway cloud integration under Configure, Sources, Cloud in LogPulse and fill in Organization ID, Secret key. LogPulse reads the Scaleway Audit Trail API itself, every five minutes by default; there is nothing to install.
- Which permissions does LogPulse need in Scaleway?
- A Scaleway organization. An IAM application with AuditTrailReadOnly and an API key for it. Read access is enough for collecting logs.
- Which index does Scaleway data go to?
- The index is the kind of data: audit, iam. The source is the product: scaleway. Each data source has its own sourcetype, listed on this page.
- Which data models does Scaleway fill?
- Change, Authentication. Detection rules and dashboards written for a data model work on Scaleway without changes.