百度智能云

All Product Document

          Log Service

          Create a Transmission Task

          Taking the logs generated continuously in the "/home/ work/nginx_logs" directory as an example, this document introduces the detailed operations for creating a transmission task:

          1. From the Baidu Log Service page, click “Transmission Task” to enter the “Transmission Task List” page, and then click “Create Transmission Task” to enter the corresponding page of “Create Transmission Task”.
          2. In the "Task Information" area, enter the task name "nginx_logs, no tags".
          3. In the "Source Setting" area, select "Directory" as the source type and configure the following parameters:

            • Source log directory: Enter “/ home/work/nginx_logs”.
            • Rules for file matching: Enter “^ access\.log\. [0-9 \-] {10} $” according to the name format of the sample log file.
            • File exclusion rule: Enter “^ access\.log $.” if “access.log” needs to be excluded.

          image.png

          1. In the “Destination Log Setting” field, select “BOS” as the file delivery destination. Then, the system generates a log file on the BOS for the collected logs every 15 minutes.
          • BOS path: Input: bos://nginx-log, if the bucket does not exist in BOS, please enter BOS to create first
          • Log aggregation: Select "Aggregate by time", "yyyy-MM-dd", "Aggregate by day".

          image.png

          1. In the CVM server list, add the CVM server where this transmission task should be deployed.

            image.png

          2. Click "Confirm" to finish creation of the log transmission task which is validated about 1 minute later.
          Previous
          Install a Collector
          Next
          View a Transmission Task