简体   繁体   中英

Significance of trackedProperties_NAME_g and trackedProperties_NAME_s in Azure Logic-app trackedProperties?

Sometime we queries at one and get the value at another column, so thought of sharing this finding came across

I have created a logic-app, with trackedProperties " MessageId " and attached with Log analytics workspace (Diagnostic settings).

How to add track properties to log analytics workspace in logi-app

  "trackedProperties": {
                       "MessageId": "@{json(xml(triggerBody())).ABC.DEF.MessageID}"
                       }

When I queried in Log Analytics,there I saw 2 trackedProperties columns with the name trackedProperties_MessageId_g and trackedProperties_MessageId_s .

Significance of above said 2 column names: When you provide a GUID value, it populates to trackedProperties_MessageId_g and when you provide string it populates to trackedProperties_MessageId_s .

Thanks for sharing your finding(s). Yes, AFAIK when you send particular field/column to Log Analytics its name is changed based on the type. This is true for almost any field/column. However there are some fields/columns which are called reserved that you can send without name change if you send them in the right type of course. An MVP, Stanislav Zhelyazkov has covered this topic here .

If you are not expecting 2 trackedProperties with the names trackedProperties_MessageId_g and trackedProperties_MessageId_s and were expecting only 1 trackedProperty then I suggest you to share your feedback in this UserVoice / feedback forum. Responsible product / feature team would check feasibility on how this can be resolved by adding some kind of checkpoint in the background and then if it's really feasible to accomplish then responsible product / feature team would triage / start prioritizing the feedback based on various factors like number of votes a feedback receives, priority, pending backlog items, etc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM