From d0bc1008bd306b2065538ef296630e341462a756 Mon Sep 17 00:00:00 2001 From: Mario Castro Date: Tue, 16 Feb 2021 19:25:16 +0100 Subject: [PATCH] Fix docs of MSSQL filebeat module referencing Traefik plus change paths from Linux to MS Windows (#23360) (#23570) (cherry picked from commit 739f820da1475783be90f23467fb09ef4af4fa22) --- filebeat/docs/modules/mssql.asciidoc | 6 +++--- x-pack/filebeat/filebeat.reference.yml | 2 +- x-pack/filebeat/module/mssql/_meta/config.yml | 2 +- x-pack/filebeat/module/mssql/_meta/docs.asciidoc | 6 +++--- x-pack/filebeat/modules.d/mssql.yml.disabled | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/filebeat/docs/modules/mssql.asciidoc b/filebeat/docs/modules/mssql.asciidoc index 7ecaa5e247a4..8d07a4e21946 100644 --- a/filebeat/docs/modules/mssql.asciidoc +++ b/filebeat/docs/modules/mssql.asciidoc @@ -20,14 +20,14 @@ include::../include/gs-link.asciidoc[] include::../include/configuring-intro.asciidoc[] The following example shows how to set paths in the +modules.d/{modulename}.yml+ -file to override the default paths for Træfik logs: +file to override the default paths for MSSQL logs: ["source","yaml",subs="attributes"] ----- - module: mssql log: enabled: true - var.paths: ["/var/opt/mssql/log/error*"] + var.paths: ['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*'] ----- @@ -35,7 +35,7 @@ To specify the same settings at the command line, you use: ["source","sh",subs="attributes"] ----- --M "mssql.log.var.paths=[/var/opt/mssql/log/error*]" +-M "mssql.log.var.paths=['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*']" ----- //set the fileset name used in the included example diff --git a/x-pack/filebeat/filebeat.reference.yml b/x-pack/filebeat/filebeat.reference.yml index 72c944b8cc83..bf4b84bc4e9e 100644 --- a/x-pack/filebeat/filebeat.reference.yml +++ b/x-pack/filebeat/filebeat.reference.yml @@ -1427,7 +1427,7 @@ filebeat.modules: # Set custom paths for the log files. If left empty, # Filebeat will choose the paths depending on your OS. - #var.paths: + #var.paths: ['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*'] #-------------------------------- MySQL Module -------------------------------- #- module: mysql diff --git a/x-pack/filebeat/module/mssql/_meta/config.yml b/x-pack/filebeat/module/mssql/_meta/config.yml index 652ca8910568..a56e658f7b71 100644 --- a/x-pack/filebeat/module/mssql/_meta/config.yml +++ b/x-pack/filebeat/module/mssql/_meta/config.yml @@ -5,4 +5,4 @@ # Set custom paths for the log files. If left empty, # Filebeat will choose the paths depending on your OS. - #var.paths: + #var.paths: ['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*'] diff --git a/x-pack/filebeat/module/mssql/_meta/docs.asciidoc b/x-pack/filebeat/module/mssql/_meta/docs.asciidoc index 2861d2754ee7..9defa42e5c33 100644 --- a/x-pack/filebeat/module/mssql/_meta/docs.asciidoc +++ b/x-pack/filebeat/module/mssql/_meta/docs.asciidoc @@ -15,14 +15,14 @@ include::../include/gs-link.asciidoc[] include::../include/configuring-intro.asciidoc[] The following example shows how to set paths in the +modules.d/{modulename}.yml+ -file to override the default paths for Træfik logs: +file to override the default paths for MSSQL logs: ["source","yaml",subs="attributes"] ----- - module: mssql log: enabled: true - var.paths: ["/var/opt/mssql/log/error*"] + var.paths: ['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*'] ----- @@ -30,7 +30,7 @@ To specify the same settings at the command line, you use: ["source","sh",subs="attributes"] ----- --M "mssql.log.var.paths=[/var/opt/mssql/log/error*]" +-M "mssql.log.var.paths=['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*']" ----- //set the fileset name used in the included example diff --git a/x-pack/filebeat/modules.d/mssql.yml.disabled b/x-pack/filebeat/modules.d/mssql.yml.disabled index d2dd2f662dd9..bfe4c6e64993 100644 --- a/x-pack/filebeat/modules.d/mssql.yml.disabled +++ b/x-pack/filebeat/modules.d/mssql.yml.disabled @@ -8,4 +8,4 @@ # Set custom paths for the log files. If left empty, # Filebeat will choose the paths depending on your OS. - #var.paths: + #var.paths: ['C:\Program Files\Microsoft SQL Server\MSSQL.150\MSSQL\LOG\ERRORLOG*']