# stdout missing from AWX API

**URL:** <https://forum.ansible.com/t/stdout-missing-from-awx-api/25636>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [September 29, 2017, 5:48am UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636 "2017-09-29T05:48:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Piotr\_M](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Piotr\_M](https://forum.ansible.com/u/Piotr_M)\
**Post date:** [September 29, 2017, 5:48am UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/1 "2017-09-29T05:48:01Z")

</div>

Hello

I am trying to get the stdout from the web interface API (I know it is possible to see the stdout on the web API output on the commercial tower )  
The job is fine and went trough with full display , however on the API I only have the message :

# Job Stdout

```auto
GET /api/v2/jobs/623/stdout/

```

```auto
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: text/plain ;utf-8
Vary: Accept
X-API-Node: awx
X-API-Time: 0.015s

```

stdout capture is missing

When I go to the job link via API :

http://my\_awx\_machine/api/v1/jobs/623/stdout/?format=txt\_download  
Or:  
http://my\_awx\_machine/api/v2/jobs/623/stdout/?format=txt\_download

I only can see the message:

```auto

```

```auto
{"detail":"Not found."}

```

```auto

```

```auto

```

```auto
Does anyone have any idea why this feature does not work in AWX ?

```

```auto
I was looking into settings and I could not find anything related.

```

```auto

```

```auto

```

```auto
Kid Regards

```

```auto
Piotr

```

```auto

```

```auto

```

```auto

```

```auto

```

```auto

```

```auto

```

```auto

```

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 29, 2017, 11:50am UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/2 "2017-09-29T11:50:19Z")

</div>

Unfortunately this is a side effect of our current container layout and  
it's something that we'll be fixing in the coming weeks. The stdout itself  
is stored on the awx\_task container but you are making requests on the  
awx\_web container. We'll just need to make sure the stdout is available in  
both places. In the meantime you can see the output on the job detail page  
and you can also get the event level detail at /api/v2/jobs/623/job\_events

---

<div class="post-metadata">

**Author:** ![Piotr\_M](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Piotr\_M](https://forum.ansible.com/u/Piotr_M)\
**Post date:** [September 29, 2017, 12:11pm UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/3 "2017-09-29T12:11:04Z")

</div>

Hello Mathew

Thank you for your quick response.

Yes I know about the other link you posted , however we need a pure ansi/txt/json/html stdout download as on my sample above , due to fact we want to integrate AWX with the external post from jenkins (via tower-cli ).Our python scrip on Jenkins need to be able to read the full stdout otherwise we cannot know if the job is completed of failed and the job on Jenkins dashboard will never be completed.  
I will wait for the fix or will try to de-containerize the AWX and run on the same machine.

Kind Regards  
Piotr

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [September 29, 2017, 12:16pm UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/4 "2017-09-29T12:16:07Z")

</div>

What are you using to trigger that? You can certainly get the status of the job itself from the api at /api/v2/jobs/n/

---

<div class="post-metadata">

**Author:** ![AlanCoding](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/alancoding/32/301_2.png) [@AlanCoding](https://forum.ansible.com/u/AlanCoding)\
**Post date:** [September 29, 2017, 12:35pm UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/5 "2017-09-29T12:35:23Z")

</div>

tower-cli has code to re-construct stdout from the job\_events stdout. This is what we use for the monitor and stdout commands. Since you’re already using it, this might be a shortcut to your objective without waiting on other fixes.

Alan

---

<div class="post-metadata">

**Author:** ![Piotr\_M](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Piotr\_M](https://forum.ansible.com/u/Piotr_M)\
**Post date:** [September 29, 2017, 1:05pm UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/6 "2017-09-29T13:05:08Z")

</div>

I was using python scrip to get the job output :

_def \_get\_tower\_job\_url(job\_id, config, output\_format):_  
_“”"_  
_Returns the url_  
_“”"_  
_host = config.get(‘general’, ‘host’)_  
_return ‘https://{0}/api/v1/jobs/{1}/stdout/?format={2}’.format(host,_  
_job\_id,_  
_output\_format)_

I will try to adjust the scrip and will let you know the results.

---

<div class="post-metadata">

**Author:** ![Piotr\_M](https://avatars.discourse-cdn.com/v4/letter/p/9fc348/32.png) [@Piotr\_M](https://forum.ansible.com/u/Piotr_M)\
**Post date:** [September 29, 2017, 1:43pm UTC](https://forum.ansible.com/t/stdout-missing-from-awx-api/25636/7 "2017-09-29T13:43:21Z")

</div>

Hi Alan. Thank you , this is probably better idea.  
the API in current state can only display 2 formats: api or json.  
We wanted that output in html or ansi ( what was possible to display from tower stdout )
