当前位置:网站首页>[log service CLS] initial experience of Tencent cloud CLS log service
[log service CLS] initial experience of Tencent cloud CLS log service
2022-06-24 15:19:00 【Third shopkeeper】
Reading guide
The log service (Cloud Log Service,CLS) It is a one-stop log service platform provided by Tencent cloud , Provides data collection from logs 、 Log storage to log retrieval analysis 、 Real time consumption 、 Log delivery and other services , Assist users to solve business operation through logs 、 Safety monitoring 、 Log audit 、 Log analysis and other issues . Users don't need to pay attention to resource expansion , Five minutes of easy access , You can enjoy stable and reliable log service .
As a server, Xiaobai , From an introductory perspective , A simple way to see Tencent cloud CLS The log service . In this article, let's share about using CLS The first experience of log service .
Concept
Log Service Center : Tencent cloud log service CLS, Log service is responsible for the storage of logs 、 Filter 、 Push and other tasks , Push and filter operations are operated by the console . Define the log index through the console key, Index keyword search can quickly locate the corresponding log record , After logging, the feedback information can quickly analyze and locate business problems .
LogListener: Log collection Agent, Install... On the server LogListener Real time collection of logs on the specified path , And the original data of the log is structured , Finally, it is pushed to the log service center .
COS Storage : Configure push tasks through the console log service , Store logs , Data is stored in object storage , Linkage Tencent cloud big data COS Pull the stored data , And log analysis processing .
Ckafka:CLS Message queuing products for logging services Ckafka Real time consumer services , Just open the corresponding button on the console to realize this function .
practice
One 、 Tencent builds on the cloud Nginx service .
1、 install Nginx service
yum install nginx -y
2、 Change configuration
vim /etc/nginx/conf.d/default.conf // Enter the configuration file 7 # listen [::]:80 default_server; // Comment the seventh line of the configuration file
3、 start-up Nginx service
nginx
Two 、Nginx Install the deployment on the server Agent Collection services
1、 download LogListener
Download address :https://main.qcloudimg.com/raw/ee52812a5bf211d08f7ed1a4c894a747/loglistener.2.2.0.tar.gz
2、 Install tools to upload files
yum install lrzsz -y
3、 Upload through the upload file tool LogListener Installation package
rz tar -zxvf loglistener.tar.gz && cd loglistener/tools/
4、 obtain API secret key ID
./install.sh $(SecretId) $(secretkey) $(region)
5、 start-up Agent service
./start.sh
3、 ... and 、 Open the log service CLS
1、 Create a log set and set the configuration
Open Tencent cloud CLS Service website :https://cloud.tencent.com/product Find the log service option ,
Then click to enter the homepage of log service products , Click on “ Immediate use ” Button ,
After entering the log service console , If it's the first time , Need to click “ Open now ” Button ,
Click to open CLS The first thing you need to do after the service is to create a log theme , The specific operation is shown below :
2、 Index configuration settings
Open the log service platform , Find the search analysis option in the left menu bar , Click to enter
3、 Log retrieval
Search analysis grammar matching rules , Set according to the actual situation , For the specific configuration index, please check the document details of Tencent cloud log service , I won't introduce .
4、 Delivery configuration task management
Open the log service platform , Find... In the menu bar on the left “ Delivery task configuration ”—>“ Post to COS”, Then click to enter
Click on “ Add delivery task ” Button , Enter the basic configuration of configuration options ,
Click on “ next step ”, Go to advanced configuration , After setting up , Click on “ determine ” Button , You can set the delivery configuration task
Last
Through this article, Tencent cloud CLS Log service experience , I think Tencent cloud's log service is quite good , By analyzing the server log , It is convenient for developers to find solutions to corresponding problems accurately and quickly , Greatly improve work efficiency , Save a lot of time and cost , And Tencent cloud log service visualization analysis operation , It's more convenient for developers . The overall operation is OK , But for Xiaobai, it's a bit hard to feel his head , We need to do a little more streamlining , It works better , The above views are personal views only , If there is something wrong , Also please correct me .
The above is the whole content of this article , Welcome to WeChat official account of three shopkeeper. “ Program the ape by Three shopkeepers ”, Three shopkeepers' Sina Weibo “ Three shopkeepers 666”, Welcome to your attention !
边栏推荐
- Database considerations
- [sdx62] wcn685x IPA registration failure analysis and solution
- 股票网上开户及开户流程怎样?网上开户安全么?
- Qunhui synchronizes with alicloud OSS
- R语言实战应用精讲50篇(二十三)-贝叶斯理论重要概念: 可信度Credibility, 模型Models, 和参数Parameters
- Keras deep learning practice (11) -- visual neural network middle layer output
- 个人如何开户炒股 炒股开户安全吗
- A common defect management tool - Zen, which teaches you from installation to using the handle
- Allwinner a40i industrial Internet gateway design scheme, smart site, smart city core gateway
- June training (day 24) - segment tree
猜你喜欢

动作捕捉系统用于地下隧道移动机器人定位与建图

From pair to unordered_ Map, theory +leetcode topic practice

从pair到unordered_map,理论+leetcode题目实战

postgresql之词法分析简介

常见的缺陷管理工具——禅道,从安装到使用手把手教会你

Development of digital Tibetan product system NFT digital Tibetan product system exception handling source code sharing

Explore cloud native databases and take a broad view of future technological development

作为一名开发者,对你影响最深的书籍是哪一本?

STM32F1与STM32CubeIDE编程实例-WS2812B全彩LED驱动(基于SPI+DMA)

Multimeter resistance measurement diagram and precautions
随机推荐
Cvpr2022 | domaine compact adaptable
安防市场进入万亿时代,安防B2B网上商城系统精准对接深化企业发展路径
golang中Map的并发写入
在同花顺开户证券安全吗,需要什么准备
作为一名开发者,对你影响最深的书籍是哪一本?
在宇宙的眼眸下,如何正确地关心东数西算?
Concurrent writing of maps in golang
Typescript raw data type
R language plot visualization: the visualization model creates a grid in the classification contour (contour) and meshgrid of the entire data space, in which the distance between each point is determi
A brief introduction to the lexical analysis of PostgreSQL
左手代码,右手开源,开源路上的一份子
Is it safe to open an account in flush? What preparation is needed
Go language - use of goroutine coroutine
CVPR2022 | 可精簡域適應
leetcode. 12 --- integer to Roman numeral
Since the household appliance industry has entered the era of stock competition, why does Suning win the first channel for consecutive times?
Use tuples
Allwinner a40i industrial Internet gateway design scheme, smart site, smart city core gateway
US Senate promotes bipartisan gun safety bill
Huangchuping presided over the video conference on fixed-point contact with Zhuhai, resolutely implemented the deployment requirements of the provincial Party committee, and ensured positive results i