# Logread doesn't work

**URL:** <https://forum.legato.io/t/logread-doesnt-work/67>\
**Category:** Legato Application Framework\
**Created:** [August 27, 2014, 4:41pm UTC](https://forum.legato.io/t/logread-doesnt-work/67 "2014-08-27T16:41:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.legato.io/u/awneil)\
**Post date:** [August 27, 2014, 4:41pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/1 "2014-08-27T16:41:15Z")

</div>

[quote=“Legato online ‘Create Applications’”]Run logread -f to get logs.

[legato.io/legato-docs/14\_04/ … n\_app.html](http://www.legato.io/legato-docs/14_04/appconverting_it_into_an_app.html) [/quote]

But it doesn’t work:

[quote]  
root@swi-mdm9x15:~# logread -f  
logread: can’t find syslogd buffer: No such file or directory  
root@swi-mdm9x15:~#  
[/quote](just logread without the ‘-f’ also gives the same)

😠

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.legato.io/u/awneil)\
**Post date:** [August 27, 2014, 6:37pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/2 "2014-08-27T18:37:40Z")

</div>

This is with Legato 14.04

---

<div class="post-metadata">

**Author:** ![esun](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@esun](https://forum.legato.io/u/esun)\
**Post date:** [August 27, 2014, 7:07pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/3 "2014-08-27T19:07:07Z")

</div>

Did you upgrade your board following the instructions provided by: [legato.io/legato-docs/14\_04/ … Legato.htm](http://www.legato.io/legato-docs/14_04/upgradeLegato.htm)?

If not, follow the instructions provided under ‘Update firmware’.

Once that is complete, you’ll also need to update your Yocto. Download the prebuilt image files from [legato.io/legato-docs/14\_04\_ … octoImages](http://www.legato.io/legato-docs/14_04_1/getstarted_yocto_linux.html#flashYoctoImages)).

If your Yocto has been updated correctly, you should be able to see a process (/sbin/syslogd -C200) that will allow you to use logread and read the Legato logs.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.legato.io/u/awneil)\
**Post date:** [August 27, 2014, 9:36pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/4 "2014-08-27T21:36:09Z")

</div>

Ah - no, I haven’t.

Since the 14.07 is already available, can I upgrade straight to that - or do I need to do the 14.04 upgrade first, then 14.07 from that?

[Again](https://forum.sierrawireless.com/viewtopic.php?f=177&t=8096&p=33290#p33272), is there an upgraded USB stick image available to down load - rather than have to wade through the process manually?

In fact, I can’t seem to find the old USB stick image (in case I mess it up) - I thought it was going to be made available to download ❓  
[viewtopic.php?f=177&t=8121&p=33289#p33289](https://forum.sierrawireless.com/viewtopic.php?f=177&t=8121&p=33289#p33289)

---

<div class="post-metadata">

**Author:** ![esun](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@esun](https://forum.legato.io/u/esun)\
**Post date:** [August 27, 2014, 9:53pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/5 "2014-08-27T21:53:15Z")

</div>

You may upgrade straight to the latest, but there isn’t a target upgrade yet for 14.07. But it should be out soon.

If you want to wait, we can always try the following workaround (although I’m not sure if it will work).  
On target, run the following commands:  
root@swi-mdm9x15:~# pidof syslogd (this should return a number)  
root@swi-mdm9x15:~# kill (pass in the num returned from the previous command)  
root@swi-mdm9x15:~# /sbin/syslogd -C200

Now try logread.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.legato.io/u/awneil)\
**Post date:** [August 27, 2014, 10:44pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/6 "2014-08-27T22:44:46Z")

</div>

[quote=“esun”]If you want to wait, we can always try the following workaround (although I’m not sure if it will work).  
On target, run the following commands:  
root@swi-mdm9x15:~# pidof syslogd (this should return a number)[/quote]  
It actually returned three numbers

> [@](#):
>
> root@swi-mdm9x15:~# kill (pass in the num returned from the previous command)

So I did a kill on each one

[quote]root@swi-mdm9x15:~# /sbin/syslogd -C200

Now try logread.[/quote]  
Yes - now it works. And I can see my “Hello, World” entry.

😃

Would I need to repeat the exercise after a restart?

---

<div class="post-metadata">

**Author:** ![esun](https://avatars.discourse-cdn.com/v4/letter/e/8e7dd6/32.png) [@esun](https://forum.legato.io/u/esun)\
**Post date:** [August 27, 2014, 11:06pm UTC](https://forum.legato.io/t/logread-doesnt-work/67/7 "2014-08-27T23:06:39Z")

</div>

[quote]Would I need to repeat the exercise after a restart?[/quote] Yep. But the later version of Yocto will have this configured for you by default once you upgrade. Glad this workaround worked for you! 😃
