In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to install and use Tlog, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Tlog is a lightweight distributed log tag tracking artifact that can be accessed in 10 minutes and automatically tags the log to complete the link tracking of the microservice.
Installation
Before installing, we need to make sure that our system meets all the software requirements for the compiler and installer. In the first step, update the system repository and software packages with the following command.
# yum update
We need to install the dependencies required for this software installation. Before installing, I have used these commands to install all dependent packages.
# yum install wget gcc# yum install systemd-devel json-c-devel libcurl-devel m4
After completing these installations, we can download the source package of the tool and extract it to the server as needed:
# wget https://github.com/Scribery/tlog/releases/download/v3/tlog-3.tar.gz# tar-xvf tlog-3.tar.gz# cd tlog-3
Now you can start building this tool using our usual configuration and compilation methods.
#. / configure-prefix=/usr-sysconfdir=/etc & & make# make install# ldconfig
Finally, you need to run ldconfig. It creates the necessary links and caches for the most recent shared libraries in the directory specified on the command line, the / etc/ld.so.conf file, and the trusted directory (/ lib and / usr/lib). Tlog work flow chart
Tlog working process first, the user authenticates and logs in through PAM. The tlog information provided by the name service exchange (NSS) is the user's shell. This initializes the tlog section, collects information about the actual shell from the environment variable / configuration file, and starts the actual shell in PTY. Then start recording everything passed between the terminal and the PTY via syslog or sd-journal. Usage you can record a session using tlog-rec and play it back using tlog-play to test whether the newly installed tlog can record and play back the session properly.
Record to a file
To record the session to a file, execute tlog-rec on the command line, as follows:
Tlog-rec-writer=file-file-path=tlog.log
This command records our terminal session to a file named tlog.log and saves it in the path specified in the command.
Play back from a file
You can use the tlog-play command to play back the recorded session during or after recording.
Tlog-play-reader=file-file-path=tlog.log
This command reads the previously recorded file tlog.log from the specified path.
Thank you for reading this article carefully. I hope the article "how to install and use Tlog" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.