If you select Filter by Directory from a drop-down list in the Filter Type column and enter /home/admin/dir* for Content, the files in all subdirectories whose names are prefixed by dir in the /home/admin/ directory are skipped.If you select Filter by Directory from a drop-down list in the Filter Type column and enter /home/admin/dir1 for Content, all files in the /home/admin/dir1 directory are skipped.You can also use wildcard characters to specify directories and file names. You can specify exact directories and file names. If you turn on Blacklist, you must configure a blacklist to exclude specific directories or files from log collection. You can use a question mark (?) to match a single character.You can use an asterisk (*) to match multiple characters.Note When you configure this parameter, you can use only asterisks (*) or question marks (?) as wildcard characters. If you specify /var/log/nginx/**/access*, Log Service collects logs from the log files whose names start with access in the /var/log/nginx directory and the recursive subdirectories of the directory.The name of the subdirectory matches the app_* pattern. The file is stored in a subdirectory under the /var/logs directory or in a recursive subdirectory of the subdirectory. If you specify /var/logs/app_*/*.log, Log Service collects logs from the log files that meet the following conditions: The file name is suffixed by.log in the /apsara/nuwa directory and the recursive subdirectories of the directory. If you specify /apsara/nuwa/**/*.log, Log Service collects logs from the log files whose names are suffixed by.Log Service scans all levels of the specified directory for the log files that match specified conditions. For more information, see Wildcard matching. You can also use wildcard characters to specify the directory and name. You can specify an exact directory and an exact name. Select the new machine group from the Source Server Groups section and move the machine group to the Applied Server Groups section. ![]() For more information, see Create an IP address-based machine group and Create a custom identifier-based machine group. Log Service allows you to create IP address-based machine groups and custom identifier-based machine groups. In the Create Machine Group step, configure the Name parameter and click Next.After Logtail is installed, click Complete Installation. ![]() ![]() For more information, see Configure a user identifier. For more information, see Install Logtail on a Linux server or Install Logtail on a Windows server.Īfter you manually install Logtail, you must configure a user identifier for the server. Important If you want to collect logs from an ECS instance that belongs to a different Alibaba Cloud account, a server in an on-premises data center, or a server of a third-party cloud service provider, you must manually install Logtail.
0 Comments
Leave a Reply. |