+[{"category":null,"content":"logs_processor # Description # Collect the local log files.\nConfiguration Example # The elasticsearch log files as an example.\npipeline: - name: log_collect auto_start: true keep_running: true retry_delay_in_ms: 3000 processor: - logs_processor: queue_name: \u0026#34;logs\u0026#34; logs_path: \u0026#34;/opt/es/elasticsearch-7.7.1/logs\u0026#34; # metadata for all log items metadata: category: elasticsearch patterns: - pattern: \u0026#34;.*_server.json$\u0026#34; type: json metadata: name: server timestamp_fields: [\u0026#34;timestamp\u0026#34;, \u0026#34;@timestamp\u0026#34;] remove_fields: [ \u0026#34;type\u0026#34;, \u0026#34;cluster.name\u0026#34;, \u0026#34;cluster.uuid\u0026#34;, \u0026#34;node.name\u0026#34;, \u0026#34;node.id\u0026#34;, \u0026#34;timestamp\u0026#34;, \u0026#34;@timestamp\u0026#34;, ] - pattern: \u0026#34;gc.log$\u0026#34; type: text metadata: name: gc timestamp_patterns: - \u0026#34;\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}T\\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2}.\\\\d{3}\\\\+\\\\d{4}\u0026#34; - \u0026#34;\\\\d{4}-\\\\d{1,2}-\\\\d{1,2} \\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2},\\\\d{3}\u0026#34; - \u0026#34;\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}T\\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2},\\\\d{3}\u0026#34; - pattern: \u0026#34;.*.log$\u0026#34; type: multiline line_pattern: \u0026#39;^\\[\u0026#39; metadata: name: server timestamp_patterns: - \u0026#34;\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}T\\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2}.\\\\d{3}\\\\+\\\\d{4}\u0026#34; - \u0026#34;\\\\d{4}-\\\\d{1,2}-\\\\d{1,2} \\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2},\\\\d{3}\u0026#34; - \u0026#34;\\\\d{4}-\\\\d{1,2}-\\\\d{1,2}T\\\\d{1,2}:\\\\d{1,2}:\\\\d{1,2},\\\\d{3}\u0026#34; Parameter Description # Name Type Description queue_name string Log files collection queue name logs_path string Log files path metadata map Configure the metadata for the log files patterns object Patterns configuration for log files patterns.pattern string Pattern for log files patterns.metadata map Configure the metadata for the log files which matched patterns.type string Log type, support json,text,multiline patterns.line_pattern string When the log type is multiline, the pattern for a new line patterns.remove_fields []string Fields that need to be removed (available when the log type is json) patterns.timestamp_fields []string Timestamp field (available when the log type is json) patterns.timestamp_patterns []string Timestamp pattern (available when the log type is text and multiline ) ","subcategory":null,"summary":"","tags":null,"title":"logs_processor","url":"/agent/main/docs/configuration/processors/logs_processor/"},{"category":null,"content":"es_node_stats # Description # Collect the cluster node stats metrics.\nConfiguration Example # pipeline - name: collect_default_es_node_stats auto_start: true keep_running: true retry_delay_in_ms: 3000 processor: - es_node_stats: elasticsearch: default Parameter Description # Name Type Description elasticsearch string Cluster instance name (Please see elasticsearch name parameter) level string Metric level, Optional cluster, indices, shards, default is shards。 labels map Custom labels ","subcategory":null,"summary":"","tags":null,"title":"es_node_stats","url":"/agent/main/docs/configuration/processors/es_node_stats/"},{"category":null,"content":"es_logs_processor # Description # Collect the cluster log files.\nConfiguration Example # pipeline - name: collect_default_es_logs auto_start: true keep_running: true retry_delay_in_ms: 3000 processor: - es_logs_processor: elasticsearch: default logs_path: \u0026#34;/opt/dev-environment/ecloud/logs\u0026#34; queue_name: logs Parameter Description # Name Type Description queue_name string Log collection queue name elasticsearch string Cluster instance name (Please see elasticsearch name parameter) logs_path string Cluster log path labels map Custom labels ","subcategory":null,"summary":"","tags":null,"title":"es_logs_processor","url":"/agent/main/docs/configuration/processors/es_logs_processor/"},{"category":null,"content":"es_index_stats # Description # Collect the cluster index stats metrics.\nConfiguration Example # pipeline - name: collect_default_es_index_stats auto_start: true keep_running: true retry_delay_in_ms: 3000 processor: - es_index_stats: elasticsearch: default Parameter Description # Name Type Description elasticsearch string Cluster instance name (Please see elasticsearch name parameter) all_index_stats bool Whether to enable the metric collection of all indexes, default is true. index_primary_stats bool Whether to enable the metric collection of index primary shards, default is true. labels map Custom labels ","subcategory":null,"summary":"","tags":null,"title":"es_index_stats","url":"/agent/main/docs/configuration/processors/es_index_stats/"},{"category":null,"content":"es_cluster_stats # Description # Collect the cluster stats metrics.\nConfiguration Example # pipeline - name: collect_default_es_cluster_stats auto_start: true keep_running: true retry_delay_in_ms: 3000 processor: - es_cluster_stats: elasticsearch: default Parameter Description # Name Type Description elasticsearch string Cluster instance name (Please see elasticsearch name parameter) labels map Custom labels ","subcategory":null,"summary":"","tags":null,"title":"es_cluster_stats","url":"/agent/main/docs/configuration/processors/es_cluster_stats/"},{"category":null,"content":"es_cluster_health # Description # Collect the cluster health metrics.\nConfiguration Example # pipeline - name: collect_default_es_cluster_health auto_start: true keep_running: true retry_delay_in_ms: 3000 processor: - es_cluster_health: elasticsearch: default Parameter Description # Name Type Description elasticsearch string Cluster instance name (Please see elasticsearch name parameter) labels map Custom labels ","subcategory":null,"summary":"","tags":null,"title":"es_cluster_health","url":"/agent/main/docs/configuration/processors/es_cluster_health/"},{"category":null,"content":"Installing the Agent # INFINI Agent supports mainstream operating systems and platforms. The program package is small, with no extra external dependency. So, the agent can be installed very rapidly\nDownloading # Automatic install\ncurl -sSL http://get.infini.cloud | bash -s -- -p agent The above script can automatically download the latest version of the corresponding platform\u0026rsquo;s agent and extract it to /opt/agent\n The optional parameters for the script are as follows:\n -v [version number](Default to use the latest version number)\n -d [installation directory] (default installation to /opt/agent)\n Manual install\nSelect a package for downloading in the following URL based on your operating system and platform:\n https://release.infinilabs.com/agent/\nSystem Service # To run the data platform of INFINI Agent as a background task, run the following commands:\n➜ ./agent -service install Success ➜ ./agent -service start Success Unloading the service is simple. To unload the service, run the following commands:\n➜ ./agent -service stop Success ➜ ./agent -service uninstall Success ","subcategory":null,"summary":"","tags":null,"title":"Installing the Agent","url":"/agent/main/docs/getting-started/install/"}]
0 commit comments