Skip to content

Commit

Permalink
Fix docs of MSSQL filebeat module referencing Traefik plus change pat…
Browse files Browse the repository at this point in the history
…hs from Linux to MS Windows (#23360) (#23570)

(cherry picked from commit 739f820)
  • Loading branch information
sayden authored Feb 16, 2021
1 parent e17a43e commit d0bc100
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions filebeat/docs/modules/mssql.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ 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*']
-----


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
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/filebeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/mssql/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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*']
6 changes: 3 additions & 3 deletions x-pack/filebeat/module/mssql/_meta/docs.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ 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*']
-----


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
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/modules.d/mssql.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -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*']

0 comments on commit d0bc100

Please sign in to comment.