Auto Installer of Intercom Activity Logs

Overview


A lightweight, dependency-free Bash collector that polls the Intercom Admin Activity Logs API on an hourly schedule, flattens each event to a dot-notation NDJSON record, rotates output files at a configurable size, and automatically purges old archives — all running as a systemd user service with no root access required.


Prerequisites


Steps to generate an Intercom API Token

  1. Go to the official Intercom Developer Hub:
    Intercom Developer Hub
  2. Log in to your Intercom workspace.
  3. Open your workspace’s Developer Hub:
    • In Intercom, go to:
      Settings → Developer Hub → Your Apps
  4. Click New App (or “Create App”).
  5. Enter:
    • App name
    • Description (optional)
  6. After creating the app:
    • Open the app
    • Go to Configure → Authentication
  7. You’ll see your Access Token there.
  8. Copy the token and store it securely.
  9. You can also find the API Version and copy as well.

Creating the setup installer

Linux:

  1. Login to the Log Collector.
  2. Open Terminal and type the following commands.
    • cd Documents
    • nano setup.sh
  3. Paste this Script  *Contact Aquila Tech Support for the full source code.
    • Please Contact "Aquila Platform Defence and Technical Enablement" for the source code. Thank you!.
  4. Save the Script and change it to executable file.
    • chmod +x setup.sh
  5. Now execute the file.
    • ./setup.sh
  6. Follow the on screen instruction to fully integrate the system.

Provide the "activity_logs.ndjson" Directory to Cytech Support for Integration.
Example: /home/user/intercom/activity_logs.ndjson

 

 


For the Back-end add this to Custom configurations:

 

processors:
  - decode_json_fields:
      fields: ["message"]
      target: ""
      overwrite_keys: true
      add_error_key: true
  - add_fields:
      target: event
      fields:
        module: intercom
  - add_fields:
      target: component
      fields:
        id: intercom-logs

 

 


If you need further assistance, kindly contact our support at support@cytechint.com for prompt assistance and guidance.

 


Revision #1
Created 29 May 2026 09:59:57 by Benjie Janlay Jr.
Updated 29 May 2026 10:41:18 by Benjie Janlay Jr.