How do I view the output of an HTTP job?
search cancel

How do I view the output of an HTTP job?

book

Article ID: 217411

calendar_today

Updated On:

Products

CA Workload Automation AE - Scheduler (AutoSys)

Issue/Introduction

When AutoSys runs an HTTP job, is there anywhere the output from this job can be viewed on the agent?

Environment

Release : 12.0

Component : CA Workload Automation AE (AutoSys)

Resolution

The output is written to the job's spool file. You can view it by running 'autosyslog -J <job_name> -t S' after the job completes. However, by default, an agent configured with AutoSys compatibility settings will automatically delete the spool file if the job succeeds. If the job fails, it is retained for 7 days.

You can also find output from the agent submitting these jobs in <AGENT_HOME>/log/commons_wrapper_log.log. These are rolling appenders so the amount of time the log data stays here depends on how many HTTP jobs you have running on the agent. It only allows a 1MB file size and only keeps 1 archive copy. Here is what it would look like...

06/11/2021 16:01:03.077-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  >> "GET /AEWS/gvar/AEWS_TEST HTTP/1.1[\r][\n]"
06/11/2021 16:01:03.077-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  >> "Host: XXXXXXXXX:9443[\r][\n]"
06/11/2021 16:01:03.078-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  >> "Connection: Keep-Alive[\r][\n]"
06/11/2021 16:01:03.078-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  >> "User-Agent: Apache-HttpClient/4.5.8 (Java/1.8.0_252)[\r][\n]"
06/11/2021 16:01:03.078-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  >> "Authorization: Basic YXV0b3N5czpXQXN1cHAx[\r][\n]"
06/11/2021 16:01:03.078-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  >> "[\r][\n]"
06/11/2021 16:01:03.212-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "HTTP/1.1 200 [\r][\n]"
06/11/2021 16:01:03.212-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Cache-Control: private[\r][\n]"
06/11/2021 16:01:03.212-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Expires: Thu, 01 Jan 1970 00:00:00 GMT[\r][\n]"
06/11/2021 16:01:03.212-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Content-Type: application/json[\r][\n]"
06/11/2021 16:01:03.213-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Transfer-Encoding: chunked[\r][\n]"
06/11/2021 16:01:03.213-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Date: Fri, 11 Jun 2021 20:01:03 GMT[\r][\n]"
06/11/2021 16:01:03.213-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Keep-Alive: timeout=60[\r][\n]"
06/11/2021 16:01:03.213-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "Connection: keep-alive[\r][\n]"
06/11/2021 16:01:03.213-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "[\r][\n]"
06/11/2021 16:01:03.214-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "ac[\r][\n]"
06/11/2021 16:01:03.214-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "{"name":"AEWS_TEST","value":"TRUE","self":{"@href":"https://lvntest020810.bpc.broadcom.net:9443/AEWS/gvar/AEWS_TEST","@rel":"self"},"updateTime":"2021-06-12T00:00:56+0000"}"
06/11/2021 16:01:03.215-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "[\r][\n]"
06/11/2021 16:01:03.215-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "0[\r][\n]"
06/11/2021 16:01:03.215-0400 5 AppServicesPlugin.108.38_1/WAAE_WF0.1/MAIN[HTTP(S)].CybApacheCommonsLoggingWrapper.debug[:208] -  << "[\r][\n]"