# How could I get full job log by API?

**URL:** <https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255>\
**Category:** Question & Answer\
**Tags:** api\
**Created:** [December 28, 2020, 7:19am UTC](https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255 "2020-12-28T07:19:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SLozenkov](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@SLozenkov](https://discuss.bitrise.io/u/SLozenkov)\
**Post date:** [December 28, 2020, 7:19am UTC](https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255/1 "2020-12-28T07:19:14Z")

</div>

Hello.  
I have a task to analyze job log in offline mode, because I do not have access to web-interface of Bitrise, but I could request Bitrise by API.  
I’ve tried to get full job log by API as mentioned [here](https://api-docs.bitrise.io/#/builds/build-log). But after downloading log file I’ve discovered that it contains only small part of full log.  
For example, I have a bit smaller than 500 log chunks (“generated\_log\_chunks\_num”: 489,) but in the downloaded file I see only last ten log chunks.  
Is it possible to get all log chunks by API request or maybe is there another way to download raw full log by API request?  
Thank You

---

<div class="post-metadata">

**Author:** ![cathy.harmon](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/cathy.harmon/32/2674_2.png) [@cathy.harmon](https://discuss.bitrise.io/u/cathy.harmon)\
**Post date:** [January 5, 2021, 4:44pm UTC](https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255/2 "2021-01-05T16:44:20Z")

</div>

Hello,

The response should contain an `expiring_raw_log_url` in the response to download the entire log!

cathy

---

<div class="post-metadata">

**Author:** ![SLozenkov](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@SLozenkov](https://discuss.bitrise.io/u/SLozenkov)\
**Post date:** [January 11, 2021, 6:41am UTC](https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255/3 "2021-01-11T06:41:36Z")

</div>

Thank You for answer.  
But in case I request the url `expiring_raw_log_url` could I get really the full log or only first 50 chunks?

---

<div class="post-metadata">

**Author:** ![chaitanya.tanna](https://avatars.discourse-cdn.com/v4/letter/c/bc8723/32.png) [@chaitanya.tanna](https://discuss.bitrise.io/u/chaitanya.tanna)\
**Post date:** [January 21, 2021, 7:20pm UTC](https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255/4 "2021-01-21T19:20:22Z")

</div>

Hi @SLozenkov  
Yes, you get the first 50 chunks.

Thanks  
Chaitanya

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [February 20, 2021, 7:20pm UTC](https://discuss.bitrise.io/t/how-could-i-get-full-job-log-by-api/15255/5 "2021-02-20T19:20:24Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
