如何从括号中的log Analytics字符串和双引号KQL中解析字符串表

发布于 2025-02-13 10:33:07 字数 264 浏览 0 评论 0原文

相当简单的问题,但是由于我在KQL的新成绩,我正在努力弄清楚如何正确执行此操作。我想从具有[“名称”]的表中解析一个字符串。问题是大约有28,000个不同的字符串,它们都是独一无二的。我只需要拉动双引号和括号之间的弦。目前,我正在做| parse tags_s *“ [”标签,然后最终得到“名称”]。我尝试用引号来解析,但是每次我这样做时,我只会带回空数据。因此,以某种方式,我需要分析28,000个单个字符串,并且仅从标签数据集下方的引号和括号中删除实际单词。 任何帮助将不胜感激。

Fairly simple question but due to how new I am at KQL I am struggling to figure out how to do this properly. I want to parse a string from a table that has ["name"]. Problem is there are about 28,000 different strings and they are all unique. I just need to pull whatever the string is that's between the double quotes and brackets. Currently I am doing | parse Tags_s * "[" Tags and then just end up getting "name"] as a result. I tried parsing in the quotes but every time I do I just bring back empty data. So somehow I need to parse 28,000 individual strings and only pull the actual word out from the quotes and brackets all under the Tags_s dataset.
Any help would be appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文