# Get etime for all completed jobs

**URL:** https://community.openpbs.org/t/get-etime-for-all-completed-jobs/2900
**Category:** Users/Site Administrators
**Created:** [December 10, 2021, 3:02pm UTC](https://community.openpbs.org/t/get-etime-for-all-completed-jobs/2900 "2021-12-10T15:02:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Ansh](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@Ansh](https://community.openpbs.org/u/Ansh)
#### Post date: [December 10, 2021, 3:02pm UTC](https://community.openpbs.org/t/get-etime-for-all-completed-jobs/2900/1 "2021-12-10T15:02:52Z")

</div>

I am currently running

> qstat -fx | grep etime

to get the etime for all jobs both current and past. Does PBS stores this information in lets say a log file which I can access to get this information or running thhe command is the only option for me?

---

<div class="post-metadata">

### Author: ![adarsh](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@adarsh](https://community.openpbs.org/u/adarsh)
#### Post date: [January 11, 2022, 5:28pm UTC](https://community.openpbs.org/t/get-etime-for-all-completed-jobs/2900/2 "2022-01-11T17:28:37Z")

</div>

You should be able to get the etime from the accounting logs:  
source /etc/pbs.conf  
cd $PBS\_HOME/server\_priv/accounting  
grep etime -R \*
