Network Attached Storage (NAS) access logs can be sent to Log Service in real time. Each access log records the details of an access event, such as the operation type, target object, and response status of the current user. This topic describes how to collect NAS access logs. It also describes relevant log fields.
- Log on to the NAS console with your Alibaba Cloud account.
- Click Apply to apply for the user-level monitoring feature as prompted at the top of the console.
User-level monitoring is now available for NAS so that you can monitor multiple I/O metrics of NAS files in real time. You must apply for this feature to configure these metrics.
- In the left-side navigation pane, choose Log Management page. to go to the
- Set Region.
- Authorize NAS to access your cloud resources.
If you configure NAS log collection for the first time, click Auth now. After authorization, NAS can send NAS access logs to your Logstore.
- Go back to the Log Management page.
- Click Create Log Store in the upper-right corner.
- Set Region and File System ID/Name, and then click OK.
- Click Click to go to go to the Log Service console to view logs.
- Click stop to stop dumping logs to Log Service.
- Query and analyze logs
- View dashboards
Log Service provides three dashboards for NAS to display real-time status such as event types and event source distribution.
You can also modify the dedicated dashboards, create a custom dashboard, and add custom analysis charts in various scenarios to your dashboards. For more information about dashboards, see Create and delete a dashboard.
- Configure alerts
On the query and analysis page of the target Logstore, you can save current query conditions as a saved search and an alert to regularly monitor important log data and send alert notifications when exceptions occur. For more information, see Configure an alert.
|Default configuration item||Description|
|Project||A project is created by default.
Note Currently, only NFS NAS access logs can be analyzed. Other protocol types will be supported in the future.
|Region||By default, logs are stored in the region where the current file system resides.|
|Shard||By default, two shards are created and the Automatic Sharding feature is enabled.|
|Log storage duration||By default, logs are stored for seven days. Logs stored more than seven days are automatically
You can modify the storage duration as needed. If you store logs for a longer period, you are charged for the extra storage duration. For more information about pricing, see Pay-as-you-go.
|Dashboard||By default, the following dashboards are created:
|ArgIno||The inode number of the file system.||226|
|AuthRc||The authorization return code.||0|
|NFSProtocolRc||The NFS return code.||0|
|OpList||The NFSv4 procedure number.||null|
|Proc||The NFSv3 procedure number.||1|
|RWSize||The size of data that was read and write, in bytes.||-1|
|RequestId||The ID of the request.||5ACF5CD506EAC7A508F056DF|
|ResIno||The inode number of lookup resources.||null|
|SourceIp||The IP address of the client.||127.0.0.1|
|User||The ID of the user.||123456789|
|Vers||The version number of the NFS protocol.||3|
|Vip||The IP address of the server.||172.18.158.178|
|Volume||The ID of the file system.||2d2794a330|
|microtime||The time when the request was sent, in microseconds.||1523539157201995|