# Read logs in App

**URL:** <https://forum.legato.io/t/read-logs-in-app/5742>\
**Category:** Legato Application Framework\
**Created:** [May 4, 2021, 11:22am UTC](https://forum.legato.io/t/read-logs-in-app/5742 "2021-05-04T11:22:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reinhard](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@Reinhard](https://forum.legato.io/u/Reinhard)\
**Post date:** [May 4, 2021, 11:22am UTC](https://forum.legato.io/t/read-logs-in-app/5742/1 "2021-05-04T11:22:38Z")

</div>

Is there a way to read the live logs inside an App?  
I am trying to make a monitoring app that monitors all my other apps and checks if they are running like they should. I am currently using le\_appCtrl and le\_appInfo to check the state of the app. But i would like to additionaly have every App write some kind of heartbeat into the logs. The monitoring app should read these logs and restart the app if it fails to send the Heartbeat. I don’t want to use IPC for that case, because i want the monitoring app and the other appps to run independently from each other.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [May 4, 2021, 11:36am UTC](https://forum.legato.io/t/read-logs-in-app/5742/2 "2021-05-04T11:36:41Z")

</div>

You can run an unsandboxed app to run

system("logread | grep xxx \> /tmp/123.txt);

After that you can read the 123.txt to check

---

<div class="post-metadata">

**Author:** ![Reinhard](https://avatars.discourse-cdn.com/v4/letter/r/a9adbd/32.png) [@Reinhard](https://forum.legato.io/u/Reinhard)\
**Post date:** [May 4, 2021, 12:09pm UTC](https://forum.legato.io/t/read-logs-in-app/5742/3 "2021-05-04T12:09:00Z")

</div>

Is it possible to do this in a sandboxed app?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [May 4, 2021, 12:18pm UTC](https://forum.legato.io/t/read-logs-in-app/5742/4 "2021-05-04T12:18:07Z")

</div>

No, i don’t think so
