Retrieving AutoSys Job Logs via AEWS REST API
search cancel

Retrieving AutoSys Job Logs via AEWS REST API

book

Article ID: 444085

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Users or automated entities (such as AI agents or third-party apps like KIRO) require a method to programmatically fetch AutoSys job standard output (std_out) or standard error (std_err) logs using the AutoSys Web Server (AEWS) REST API.

Specific inquiries include:

  • Searching for an "AEWS command list" configuration file to add the autosyslog utility.
  • Identifying the REST endpoint for direct log streaming.
  • Permissions required in CA EEM for web-based log access.

Environment

Product: AutoSys Workload Automation
Component: AutoSys Web Server (AEWS)
Versions: 12.x, 24.x

Cause

The AutoSys Web Server (AEWS) architecture does not include a generic wrapper for command-line utilities. There is no "command list" configuration file that allows adding autosyslog to the AEWS service. Furthermore, there is currently no native REST API endpoint designed to stream job log contents directly to a client.

Resolution

Retain one of the following methods for programmatic log retrieval:

  • Method 1: Use the AutoSys CLI (Direct Access)
    Install the AutoSys client on the application or AI agent host and execute the autosyslog command:

    • For stdout: autosyslog -J <job_name> -tO
    • For stderr: autosyslog -J <job_name> -tE

  • Method 2: Wrapper Job Workflow
    Create an AutoSys command job that runs autosyslog and redirects the results to a file or database that the AI agent can read via standard protocols.

    Required Permissions
    Ensure the service account has the necessary security policy in CA EEM:

    • Resource Class: as-joblog
    • Access: read

Additional Information

For a detailed architectural overview of how logs are moved from the Agent to the Application Server, see How are job standard output and error log files retrieved.