Home
โบ
DevOps
โบ
Where Are AutoSys Job Logs? std_out_file, std_err_file and autosyslog
Beginner
3 min · December 6, 2026
Where Are AutoSys Job Logs? std_out_file, std_err_file and autosyslog
An AutoSys job failed and there's no log? Without std_out_file and std_err_file the output is discarded.
N
Naren
Founder & Principal Engineer
20+ years shipping production infrastructure and CI/CD at scale. Drawn from code that ran under real load.
Follow
✓ Production
production tested
December 06, 2026
last updated
2,151
articles · all by Naren
VIDEO
⚡ Quick Answer
No std_out_file / std_err_file = output discarded. Set both in the job's JIL; the files are created on the agent machine. Use $AUTO_JOB_NAME and $AUTORUN in the path for one file per run. Prefix the path with >> to append instead of overwrite. Job never started? Check the scheduler side with autosyslog -e, and the agent's own log on that machine.
โฆ Definition ~90s read
What is Where Are AutoSys Job Logs??
AutoSys doesn't keep a job's output by default. std_out_file and std_err_file are JIL attributes that tell the agent where to write the job's standard output and standard error, on the agent machine.
โ
The script talks while it runs.
Plain-English First
The script talks while it runs. Unless you give AutoSys two notebooks to write in, nobody writes anything down.
EXTRACT_CUST failed at 03:10. The on-call engineer looked for the error and found no log file at all.
Set both log files Add the attributes to the job definition. Paths are on the agent machine and the directory must exist and be writable by the job owner.
update_job: EXTRACT_CUST
std_out_file: "/logs/$AUTO_JOB_NAME.$AUTORUN.out"
std_err_file: "/logs/$AUTO_JOB_NAME.$AUTORUN.err" ๐ฏ Key Takeaway
Not set means discarded.
Append instead of overwrite Start the value with >> to keep adding to one file.
update_job: EXTRACT_CUST
std_err_file: ">>/logs/EXTRACT_CUST.err" ๐ฏ Key Takeaway
One file per run is easier to read.
When the job never ran If the job didn't start, its own files are empty. Look at the scheduler side.
autosyslog -e # scheduler event log
autosyslog -J EXTRACT_CUST # job log from the agent
autorep -J EXTRACT_CUST -q | grep -E 'std_|machine' ๐ฏ Key Takeaway
Never started = scheduler and agent logs.
● Production incident POST-MORTEM severity: high
A Failure With No Log Symptom
EXTRACT_CUST FAILURE, exit 1; no .out or .err file anywhere.
Assumption
AutoSys keeps job output somewhere by default.
Root cause
std_out_file and std_err_file were never set, so both streams were discarded.
Fix
Added std_out_file and std_err_file with $AUTO_JOB_NAME.$AUTORUN in the name to every job in the box.
Key lesson
Set both log attributes on every job. One file per run. Logs live on the agent machine.
Production debug guide Work through these in order 4 entries
Symptom · 01
Job failed, no log file
→
Fix
autorep -J JOB -q | grep std_; if empty, set std_out_file and std_err_file.
Symptom · 02
Log exists but only shows the last run
→
Fix
Add $AUTORUN to the file name, or use >> to append.
Symptom · 03
Can't find the file
→
Fix
Look on the agent machine named in the job's machine attribute, not the scheduler server.
Symptom · 04
Job never reached RUNNING
→
Fix
Check autosyslog -e for the scheduler's events, then the agent's log directory.
⚙ Quick Reference
3 commands from this guide
File Command / Code Purpose logs.jil update_job: EXTRACT_CUST Set both log files append.jil update_job: EXTRACT_CUST Append instead of overwrite logs.sh autosyslog -e # scheduler event log When the job never ran
Key takeaways 1 Set std_out_file and std_err_file.
2 Logs are on the agent machine.
3 autosyslog for jobs that never started.
Common mistakes to avoid 3 patterns × No std_err_file Symptom
Failures with nothing to read.
Fix
Set it on every job.
× Same file name every run Symptom
Yesterday's error is overwritten.
Fix
Add $AUTORUN or use >>.
× Looking on the scheduler server Symptom
File not found.
Fix
Logs are on the agent machine.
INTERVIEW PREP · PRACTICE MODE
Interview Questions on This Topic
Practice
List View
Q01 JUNIOR
Where does AutoSys write job output by default?
Q02 SENIOR
How do you give each run its own log file?
Q01 of 02 JUNIOR
Where does AutoSys write job output by default?
ANSWER
Nowhere useful: without std_out_file and std_err_file the output is discarded.
Q02 of 02 SENIOR
How do you give each run its own log file?
ANSWER
Use $AUTO_JOB_NAME and $AUTORUN in the std_out_file and std_err_file paths.
01
Where does AutoSys write job output by default?
JUNIOR 02
How do you give each run its own log file?
SENIOR
FAQ · 2 QUESTIONS
Frequently Asked Questions
01
Can I send stdout and stderr to the same file? Yes, give both attributes the same path.
Was this helpful? 👍 Yes 👎 No
02
What does >> do in std_out_file? Appends to the file instead of overwriting it.
Was this helpful? 👍 Yes 👎 No
N
Naren
Founder & Principal Engineer
20+ years shipping production infrastructure and CI/CD at scale. Drawn from code that ran under real load.
Follow
✓ Verified
production tested
December 06, 2026
last updated
2,151
articles · all by Naren
🔥
That's AutoSys. Mark it forged?
3 min read · try the examples if you haven't
✓ Mark as read · go to AutoSys Job Stuck in ACTIVATED →
Save for later