# How to remove prefix from log format

**URL:** <https://forum.legato.io/t/how-to-remove-prefix-from-log-format/6948>\
**Category:** Uncategorized\
**Created:** [September 12, 2025, 10:49am UTC](https://forum.legato.io/t/how-to-remove-prefix-from-log-format/6948 "2025-09-12T10:49:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chytusk](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@chytusk](https://forum.legato.io/u/chytusk)\
**Post date:** [September 12, 2025, 10:49am UTC](https://forum.legato.io/t/how-to-remove-prefix-from-log-format/6948/1 "2025-09-12T10:49:44Z")

</div>

Legato Log messages have the following format:

```auto
Jan 3 02:37:56 INFO | processName[pid]/componentName T=threadName | fileName.c funcName() lineNum | Message

```

Could anyone explain how to remove prefix such as date, timestamp etc..?

---

<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:** [September 12, 2025, 2:31pm UTC](https://forum.legato.io/t/how-to-remove-prefix-from-log-format/6948/2 "2025-09-12T14:31:15Z")

</div>

You can save the logread to text file and then use awk and cut command

> <https://stackoverflow.com/questions/3742292/shell-script-how-to-cut-part-of-a-string>

---

<div class="post-metadata">

**Author:** ![chytusk](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@chytusk](https://forum.legato.io/u/chytusk)\
**Post date:** [September 13, 2025, 4:10am UTC](https://forum.legato.io/t/how-to-remove-prefix-from-log-format/6948/3 "2025-09-13T04:10:11Z")

</div>

Thank you for your response. I am already aware of that and will not to use post-processing. I want to know that is there any way to remove prefix from the legato?

---

<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:** [September 13, 2025, 4:47am UTC](https://forum.legato.io/t/how-to-remove-prefix-from-log-format/6948/4 "2025-09-13T04:47:39Z")

</div>

logread probably is part of busybox, not inside legato

BTW, you can see the source code of legato, it also use post-processing method:

> <https://github.com/legatoproject/legato-af/blob/master/framework/daemons/linux/start/start.c#L1683>
