当前位置:网站首页>用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
2022-08-05 10:17:00 【zyypjc】
目录
(一)前言
最近公司将一张平时存放在Azure托管实例里的Audit_log表整体迁移到Azure Data Explorer Database来存储。所以本文中我会先整理归纳Azure Data Explorer Database的基本概念,然后将试着用一个简单的例子来实战说明。
(二)Azure Data Explorer介绍及应用
公司每天都在生成和存储大量数据。 这些数据可以是非结构化的(例如音频,视频),半结构化的(例如XML,JSON)或结构化的(例如数字,日期,字符串)。 数据专业人员一直在寻找有效的技术来处理大量不同数据。 虽然我们当然可以使用传统的数据仓库,Hadoop,Spark等分析工具来做到这一点,但是在探索和分析数据之前,这将涉及对TB级和PB级数据进行ETL的常规方法。所以,迫切需要一个平台,该平台将使用户能够快速利用和分析各种原始数据,并快速提取数据并获得最佳性能。 让我们使用一个有趣的数据分析服务解决这种情况。
1. 什么是Azure Data Explorer?
Azure数据浏览器又名ADX,是一种用于日志,遥测和流数据的快速,高度可扩展和完全托管的数据分析服务。 通过此数据浏览服务,您可以汇总,存储和分析各种数据。 您可以在几秒钟内查询数TB的数据,它允许对各种数据进行快速的即席查询。
在Azure Data Explorer上的工具以前称为“代号为Kusto”,使用类似SQL的查询语言即Kusto查询语言(KQL)来分析来自IoT设备,应用程序,网站等的快速流动数据。KQL不限于使用功能和数百个运算符例如聚合,过滤等,它还包含内置的机器学习功能,例如聚类,回归等。
ADX使用SSD存储作为缓存和Azure Blob存储中的持久存储,根据计算和存储之间的隔离原理进行工作。 它是完全托管的“平台即服务(PaaS)”,使用户仅关注其数据和查询。 为了说明ADX的主要优势之一,这里重点强调下一项优势,即时间序列分析:它
非常方便,并提供大量功能来分析,识别趋势和异常。
2. 实战案例
(1)案例背景
查询公司某关键系统用户的Audit_log,并导入日志(CSV)
(2)进入Azure Data Explorer主页面
(3)点击Query
点击后,看到右侧就是KQL输入的查询区域,可以在里面进行编辑查询
同时,在中间区域可以像选择数据库以及数据库下属的表一样去查看想查询的对象
(4)输入查询的KQL
如下KQL目的在于拉出AuditLogs表的前10000行
AuditLogs
| take 10000
(5)导出功能
右击查询结果区域,看到导出功能列表
边栏推荐
- 用户考试分数大于单科科目平均分的查询
- STM32+ULN2003驱动28BYJ4步进电机(根据圈数正转、反转)
- DFINITY 基金会创始人谈熊市沉浮,DeFi 项目该何去何从
- 【 temperature warning program DE development 】 event driven model instance
- FPGA:开发环境Vivado的使用
- 【综合类型第 35 篇】程序员的七夕浪漫时刻
- MySQL之数据视图
- Advanced usage of C language
- Complete image segmentation efficiently based on MindSpore and realize Dice!
- js劫持数组push方法
猜你喜欢
Jenkins使用手册(2) —— 软件配置
如何选币与确定对应策略研究
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
Custom filters and interceptors implement ThreadLocal thread closure
How can project cost control help project success?
Introduction to SD NAND Flash!
Meteorological data processing example - matlab string cutting matching and R language date matching (data splicing)
Bias lock/light lock/heavy lock lock is healthier. How is locking and unlocking accomplished?
Egg framework usage (2)
What is SPL?
随机推荐
How does the official account operate and maintain?Public account operation and maintenance professional team
第四章:activiti流程中,变量的传递和获取流程变量 ,设置和获取多个流程变量,设置和获取局部流程变量「建议收藏」
IDEA performs the Test operation, resulting in duplicate data when data is inserted
Handwriting Currying - toString Comprehension
ffmpeg drawtext 添加文本水印
NowCoderTOP35-40——持续更新ing
第九章:activit内置用户组设计与组任务分配和IdentityService接口的使用
2022杭电多校 第6场 1008.Shinobu Loves Segment Tree 规律题
【温度预警程序de开发】事件驱动模型实例运用
leetcode: 529. Minesweeper Game
Pytorch Deep Learning Quick Start Tutorial -- Mound Tutorial Notes (3)
华为轻量级神经网络架构GhostNet再升级,GPU上大显身手的G-GhostNet(IJCV22)
The founder of the DFINITY Foundation talks about the ups and downs of the bear market, and where should DeFi projects go?
项目成本控制如何帮助项目成功?
2022 Huashu Cup Mathematical Modeling Ideas Analysis and Exchange
Is digital transformation a business buy-in?
Voice-based social software development - making the most of its value
hcip BGP enhancement experiment
Tanabata romantic date without overtime, RPA robot helps you get the job done
RT-Thread记录(一、RT-Thread 版本、RT-Thread Studio开发环境 及 配合CubeMX开发快速上手)