# What is the function of "\_msgid"?

**URL:** https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436
**Category:** General
**Created:** [10 January 2024 03:07 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436 "2024-01-10T03:07:26Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)
#### Post date: [10 January 2024 03:07 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/1 "2024-01-10T03:07:26Z")

</div>

If the same rule is triggered multiple times in a short period of time, can "\_msgid" be used to distinguish different events?

![1704855779514](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/d/4db95b59d0b558719a9c2639eff8dae69e974ed7.png)

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [10 January 2024 09:20 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/2 "2024-01-10T09:20:06Z")

</div>

I don't think because the id will be different with each new injection message

---

<div class="post-metadata">

### Author: ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)
#### Post date: [10 January 2024 09:21 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/3 "2024-01-10T09:21:28Z")

</div>

May I ask, what is the function of "\_msgid"?

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [10 January 2024 09:23 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/4 "2024-01-10T09:23:13Z")

</div>

Honestly I don't know anymore, it's supposed to identify the passage of a message between nodes or something like that

---

<div class="post-metadata">

### Author: ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)
#### Post date: [10 January 2024 09:24 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/5 "2024-01-10T09:24:50Z")

</div>

i see, thanks

---

<div class="post-metadata">

### Author: ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)
#### Post date: [10 January 2024 09:26 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/6 "2024-01-10T09:26:35Z")

</div>

Sorry I don't have the answer, I see that @Steve-Mcl is there, let's ask him

---

<div class="post-metadata">

### Author: ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)
#### Post date: [10 January 2024 10:26 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/7 "2024-01-10T10:26:10Z")

</div>

Nick or Dave would likely have been involved in the introduction of that feature (I was not) but I believe it was added for message tracing purposes.

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [10 January 2024 11:40 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/8 "2024-01-10T11:40:11Z")

</div>

correct - it is added to any msg that does not have one... it is there for tracing purposes. If you turn on tracing in the settings.js then the log file would have loads of extra info in it. In theory someone could write a tool to inspect the logs and create timing diagrams and path diagrams to get a different view of messages flowing. if you delete it - a new one will get added automatically.

---

<div class="post-metadata">

### Author: ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)
#### Post date: [11 January 2024 00:45 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/9 "2024-01-11T00:45:09Z")

</div>

Thank you for pointing the way ::

---

<div class="post-metadata">

### Author: ![Yesung](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yesung/32/87392_2.png) [@Yesung](https://discourse.nodered.org/u/Yesung)
#### Post date: [11 January 2024 00:46 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/10 "2024-01-11T00:46:34Z")

</div>

I see, thanks~ Your guidance has greatly benefited me

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [25 January 2024 00:47 UTC](https://discourse.nodered.org/t/what-is-the-function-of-msgid/84436/11 "2024-01-25T00:47:33Z")

</div>

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