Skip to content

Commit

Permalink
Fix log path format in logging example (#10647)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton authored Feb 21, 2019
1 parent 3cdcb46 commit b2ce8bc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions libbeat/docs/loggingconfig.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ ifndef::serverless[]
The logging system can write logs to the syslog or rotate log files. If logging
is not explicitly configured the file output is used.

ifndef::win_only[]
["source","yaml",subs="attributes"]
----
logging.level: info
Expand All @@ -29,6 +30,20 @@ logging.files:
keepfiles: 7
permissions: 0644
----
endif::win_only[]

ifdef::win_only[]
["source","yaml",subs="attributes"]
----
logging.level: info
logging.to_files: true
logging.files:
path: C:{backslash}ProgramData{backslash}{beatname_lc}{backslash}Logs
name: {beatname_lc}
keepfiles: 7
permissions: 0644
----
endif::win_only[]

TIP: In addition to setting logging options in the config file, you can modify
the logging output configuration from the command line. See
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/docs/getting-started.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ output.elasticsearch:
logging.to_files: true
logging.files:
path: C:/ProgramData/winlogbeat/Logs
path: C:\ProgramData\winlogbeat\Logs
logging.level: info
--------------------------------------------------------------------------------

Expand Down

0 comments on commit b2ce8bc

Please sign in to comment.