Deep-dive on the Next Gen Platform. Join the Webinar!

Skip Navigation
Show nav
Dev Center
  • Get Started
  • Documentation
  • Changelog
  • Search
  • Get Started
    • Node.js
    • Ruby on Rails
    • Ruby
    • Python
    • Java
    • PHP
    • Go
    • Scala
    • Clojure
    • .NET
  • Documentation
  • Changelog
  • More
    Additional Resources
    • Home
    • Elements
    • Products
    • Pricing
    • Careers
    • Help
    • Status
    • Events
    • Podcasts
    • Compliance Center
    Heroku Blog

    Heroku Blog

    Find out what's new with Heroku on our blog.

    Visit Blog
  • Log inorSign up
Hide categories

Categories

  • Heroku Architecture
    • Compute (Dynos)
      • Dyno Management
      • Dyno Concepts
      • Dyno Behavior
      • Dyno Reference
      • Dyno Troubleshooting
    • Stacks (operating system images)
    • Networking & DNS
    • Platform Policies
    • Platform Principles
  • Developer Tools
    • Command Line
    • Heroku VS Code Extension
  • Deployment
    • Deploying with Git
    • Deploying with Docker
    • Deployment Integrations
  • Continuous Delivery & Integration (Heroku Flow)
    • Continuous Integration
  • Language Support
    • Node.js
      • Working with Node.js
      • Troubleshooting Node.js Apps
      • Node.js Behavior in Heroku
    • Ruby
      • Rails Support
      • Working with Bundler
      • Working with Ruby
      • Ruby Behavior in Heroku
      • Troubleshooting Ruby Apps
    • Python
      • Working with Python
      • Background Jobs in Python
      • Python Behavior in Heroku
      • Working with Django
    • Java
      • Java Behavior in Heroku
      • Working with Java
      • Working with Maven
      • Working with Spring Boot
      • Troubleshooting Java Apps
    • PHP
      • PHP Behavior in Heroku
      • Working with PHP
    • Go
      • Go Dependency Management
    • Scala
    • Clojure
    • .NET
      • Working with .NET
  • Databases & Data Management
    • Heroku Postgres
      • Postgres Basics
      • Postgres Getting Started
      • Postgres Performance
      • Postgres Data Transfer & Preservation
      • Postgres Availability
      • Postgres Special Topics
      • Migrating to Heroku Postgres
    • Heroku Key-Value Store
    • Apache Kafka on Heroku
    • Other Data Stores
  • AI
    • Working with AI
  • Monitoring & Metrics
    • Logging
  • App Performance
  • Add-ons
    • All Add-ons
  • Collaboration
  • Security
    • App Security
    • Identities & Authentication
      • Single Sign-on (SSO)
    • Private Spaces
      • Infrastructure Networking
    • Compliance
  • Heroku Enterprise
    • Enterprise Accounts
    • Enterprise Teams
    • Heroku Connect (Salesforce sync)
      • Heroku Connect Administration
      • Heroku Connect Reference
      • Heroku Connect Troubleshooting
  • Patterns & Best Practices
  • Extending Heroku
    • Platform API
    • App Webhooks
    • Heroku Labs
    • Building Add-ons
      • Add-on Development Tasks
      • Add-on APIs
      • Add-on Guidelines & Requirements
    • Building CLI Plugins
    • Developing Buildpacks
    • Dev Center
  • Accounts & Billing
  • Troubleshooting & Support
  • Integrating with Salesforce
  • Heroku Enterprise
  • Enterprise Accounts
  • Audit Trails for Enterprise Accounts

Audit Trails for Enterprise Accounts

English — 日本語に切り替える

Last updated April 25, 2024

Table of Contents

  • Installation
  • Usage
  • Access
  • Supported events

Enterprise Accounts enable you to export an audit trail, which is a JSON-formatted archive of certain events associated with the account. This archive helps you meet a variety of compliance, auditing, and accountability requirements.

Installation

No installation is needed for the Audit Trail. If you are using the Enterprise Accounts and have the “Manage” permission in your company’s Enterprise Account, you should be able to find and use feature under the Settings tab.

Audit Trail

Usage

Heroku provides a separate event archive for each calendar month. It does not provide real-time event logging. If you request the event archive for the current month, the archive includes all events from the start of the current month up to midnight UTC of the current day.

First install the enterprise plugin:

$ heroku plugins:install @heroku-cli/plugin-enterprise

To list all available event archives:

$ heroku enterprise:audits -e my-enterprise-account-name

To export the current month’s archive:

$ heroku enterprise:audits:export -e my-enterprise-account-name

To export a particular month’s archive:

$ heroku enterprise:audits:export 2018-01 -e my-enterprise-account-name

The exported archive doesn’t always list audit trail entries in chronological order. You can use jq to sort the entries in the JSON file. For example, jq '.entries |= sort_by(.created_at)' your-exported-file.json.

Access

Any member of your Enterprise Account with the manage permission can export audit trail archives. Learn more about Enterprise Account permissions. Users can also export audit logs using the Enterprise Accounts CLI plugin. Please visit the Enterprise Accounts CLI Plugin Dev Center article to learn more about the Heroku CLI and installation instructions.

Supported events

Audit trails include the following event types, selected to help you meet various auditing and compliance requirements:

[
  "addon.attach",
  "addon.create",
  "addon.destroy",
  "addon.detach",
  "addon.update",
  "app.create",
  "app.destroy",
  "app.update",
  "app_transfer.create",
  "app_transfer.update",
  "code_release.create",
  "collaborator.create",
  "collaborator.destroy",
  "config_change.remove",
  "config_change.set",
  "domain.create",
  "domain.destroy",
  "enterprise_account_membership.create",
  "enterprise_account_membership.destroy",
  "enterprise_account_membership.update",
  "heroku_config_change.update",
  "sni_endpoint.create",
  "sni_endpoint.destroy",
  "sni_endpoint.update",
  "space.create",
  "space.destroy",
  "space.update",
  "team_membership.create",
  "team_membership.destroy",
  "team_membership.update",
  "team.destroy",
  "team.update",
  "trusted_ip.update"
]

Keep reading

  • Enterprise Accounts

Feedback

Log in to submit feedback.

Managing Teams in Enterprise Accounts Enterprise Accounts CLI Plugin

Information & Support

  • Getting Started
  • Documentation
  • Changelog
  • Compliance Center
  • Training & Education
  • Blog
  • Support Channels
  • Status

Language Reference

  • Node.js
  • Ruby
  • Java
  • PHP
  • Python
  • Go
  • Scala
  • Clojure
  • .NET

Other Resources

  • Careers
  • Elements
  • Products
  • Pricing
  • RSS
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku Blog
    • Heroku News Blog
    • Heroku Engineering Blog
  • Twitter
    • Dev Center Articles
    • Dev Center Changelog
    • Heroku
    • Heroku Status
  • Github
  • LinkedIn
  • © 2025 Salesforce, Inc. All rights reserved. Various trademarks held by their respective owners. Salesforce Tower, 415 Mission Street, 3rd Floor, San Francisco, CA 94105, United States
  • heroku.com
  • Legal
  • Terms of Service
  • Privacy Information
  • Responsible Disclosure
  • Trust
  • Contact
  • Cookie Preferences
  • Your Privacy Choices