Monitoring vStorage Through Logs
What is logs?
A log is a collection of events that are collected at different points in time. These events are typically generated by applications or services and contain full context information at the time the event occurred.
Why are logs useful?
Logs are an important element of cybersecurity. When done properly, logging can provide us with a clear view of what is happening or has happened in our system, allowing us to verify events with greater accuracy and make adjustments as needed.
Monitoring vStorage through vStorage logs on the vMonitor Platform
Monitoring vStorage through logs is easy when you use the vMonitor Platform. We have transferred logs from vStorage to vMonitor Platform regularly every 5 minutes. Rest assured that vMonitor Platform is also a product of the VNG Cloud ecosystem. You can use vMonitor Platform to configure monitoring features based on vStorage logs. Of course, to be able to monitor, you need to purchase a log quota package for the vMonitor Platform service. For details, please refer to vMonitor Platform.
The log content pushed to the system includes the following information:
Fields | Meaning |
---|---|
Fields | Meaning |
@timestamp | Thแปi gian sแปฑ kiแปn bแบฏt ฤแบงu tฦฐฦกng tแปฑ nแปi dung field "request_start_time" |
account | Account ID cแปงa tร i khoแบฃn vStorage, cรณ ฤแปnh dแบกng AUTH_<ID> |
bytes_per_second | Vแบญn tแปc tแบฃi lรชn hoแบทc tแบฃi xuแปng tรนy ngแปฏ cแบฃnh cแปงa request, sแป ฤฦฐแปฃc tรญnh toรกn dแปฑa trรชn dแปฏ liแปu mรกy chแปง gแปญi, nhแบญn vร thแปi gian ฤแป hoร n thร nh |
bytes_recvd | Tแปng sแป bytes dแปฏ liแปu mรกy chแปง nhแบญn ฤฦฐแปฃc , tฦฐฦกng ฤฦฐฦกng vแปi chiแปu ngฦฐแปi dรนng tแบฃi lรชn dแปฏ liแปu |
bytes_sent | Tแปng sแป bytes dแปฏ liแปu mรกy chแปง ฤรฃ gแปญi tแปi ngฦฐฦกi dรนng, tฦฐฦกng ฤฦฐฦกng vแปi chiแปu ngฦฐแปi dรนng tแบฃi xuแปng dแปฏ liแปu |
bytes_sum | Tแปng sแป bytes cแบฃ hai chiแปu tแบฃi lรชn vร tแบฃi xuแปng |
client_country | Quแปc gia cแปงa ฤแปa chแป IP ฤรฃ tฦฐฦกng tรกc |
client_ip | ฤแปa chแป IP cแปงa thiแบฟt bแป ฤรฃ tฦฐฦกng tรกc |
cls_service | ฤแบกi diแปn dแปch vแปฅ ฤรฃ sinh ra dรฒng Log. Vรญ dแปฅ: vStorage |
container | Tรชn cแปงa container |
host | VNGCLOUD |
lag_seconds |
|
object | Tรชn cแปงa object |
policy_index | ID cแปงa gรณi lฦฐu trแปฏ: Gold/Silver/Archive theo thแปฉ tแปฑ lร 0,1,2 |
project_id | ID cแปงa project |
received_at | Thแปi gian nhแบญn request |
referer | Thรดng tin ฤแปa chแป website ฤรฃ yรชu cแบงu object trแปฑc tiแบฟp tแปซ browser ngฦฐแปi dรนng trong trฦฐแปng hแปฃp container ฤฦฐแปฃc public hoแบทc qua vCDN |
region | Khu vแปฑc lฦฐu trแปฏ trรชn vStorage. Vรญ dแปฅ: HCM01, HAN01 |
request_end_time | Thแปi gian request hoร n tแบฅt trรชn mรกy chแปง lฦฐu trแปฏ |
request_method | Method cแปงa request thฦฐแปng lร GET/PUT/POST/DELETE/HEAD |
request_path | ฤฦฐแปng dแบซn ฤแบงy ฤแปง cแปงa request |
request_start_time | Thแปi gian bแบฏt ฤแบงu nhแบญn request tแปซ ngฦฐแปi dรนng |
request_time | Tแปng thแปi gian hoร n tแบฅt yรชu cแบงu theo ฤฦกn vแป giรขy (seconds) |
source | Nguแปn xuแบฅt phรกt Request. Vรญ dแปฅ: "S3" tแปฉc request khรกch hร ng ฤang dรนng S3 kแบฟt nแปi, "-" request ฤang dรนng Swift, "SLO" request ฤang dรนng Large Object vร ฤang thแปฑc hiแปn segments/Multipart |
status_int | Mรฃ phแบฃn hแปi tแปซ mรกy chแปง thแป hiแปn thร nh cรดng hoแบทc thแบฅt bแบกi. Vรญ dแปฅ: 200, 201, 401, 404... |
storage_class | Storage class mร Container ฤรฃ ฤฤng kรฝ (Gold/Silver/Archive) |
transaction_id | ID cแปงa Request ฤรฃ thแปฑc hiแปn dรนng truy vแบฟt hoแบทc so sรกnh mแปt Request cแปฅ thแป giแปฏa mรกy chแปง vร khรกch hร ng |
user_agent | Thรดng tin User-Agent trong Request HTTP, thแป hiแปn phiรชn bแบฃn Client/Browser/Application ฤang thแปฑc hiแปn kแบฟt nแปi ฤแบฟn mรกy chแปง ฤแป thแปฑc thi Request |
Last updated