Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use utf-8 encoding for default #363

Merged
merged 2 commits into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions plugins/asterisk.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plugin Info
version: 1.0.0
version: 1.0.1
title: Asterisk
description: Log Parser for Asterisk
min_stanza_version: 1.2.3
Expand All @@ -20,13 +20,12 @@ parameters:
description: Specify the encoding of the file(s) being read. In most cases, you can leave the default option selected.
type: enum
valid_values:
- nop
- utf-8
- utf-16le
- utf-16be
- ascii
- big5
default: nop
default: utf-8
advanced_config: true
- name: timestamp_format
label: Timestamp Format
Expand All @@ -47,7 +46,7 @@ parameters:
default: end
# Set Defaults
# {{$timestamp_format := default "ISO 8601" .timestamp_format}}
# {{$encoding := default "nop" .encoding}}
# {{$encoding := default "utf-8" .encoding}}
# {{$start_at := default "end" .start_at}}

# Pipeline Template
Expand Down
7 changes: 3 additions & 4 deletions plugins/csv.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plugin Info
version: 1.0.0
version: 1.0.1
title: CSV
description: File Input CSV Parser
min_stanza_version: 0.13.12
Expand All @@ -24,13 +24,12 @@ parameters:
description: Specify the encoding of the file(s) being read. In most cases, you can leave the default option selected.
type: enum
valid_values:
- nop
- utf-8
- utf-16le
- utf-16be
- ascii
- big5
default: nop
default: utf-8
- name: log_type
label: Type
description: Adds the specified 'Type' as a label to each log message.
Expand All @@ -46,7 +45,7 @@ parameters:
default: end
# Set Defaults
# {{$header := .header}}
# {{$encoding := default "nop" .encoding}}
# {{$encoding := default "utf-8" .encoding}}
# {{$log_type := default "csv" .log_type}}
# {{$start_at := default "end" .start_at}}

Expand Down
7 changes: 3 additions & 4 deletions plugins/file.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plugin Info
version: 1.0.0
version: 1.0.1
title: File
description: File Input Parser
min_stanza_version: 0.13.12
Expand Down Expand Up @@ -33,13 +33,12 @@ parameters:
description: Specify the encoding of the file(s) being read. In most cases, you can leave the default option selected.
type: enum
valid_values:
- nop
- utf-8
- utf-16le
- utf-16be
- ascii
- big5
default: nop
default: utf-8
- name: log_type
label: Type
description: Adds the specified 'Type' as a label to each log message.
Expand All @@ -56,7 +55,7 @@ parameters:
# Set Defaults
# {{$enable_multiline := default false .enable_multiline}}
# {{$multiline_line_start_pattern := default "" .multiline_line_start_pattern}}
# {{$encoding := default "nop" .encoding}}
# {{$encoding := default "utf-8" .encoding}}
# {{$log_type := default "file" .log_type}}
# {{$start_at := default "end" .start_at}}

Expand Down
7 changes: 3 additions & 4 deletions plugins/nginx.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 1.0.0
version: 1.0.1
title: Nginx
description: Log parser for Nginx
min_stanza_version: 0.13.12
Expand Down Expand Up @@ -92,13 +92,12 @@ parameters:
description: Specify the encoding of the file(s) being read. In most cases, you can leave the default option selected.
type: enum
valid_values:
- nop
- utf-8
- utf-16le
- utf-16be
- ascii
- big5
default: nop
default: utf-8

# Set Defaults
# {{$source := default "file" .source}}
Expand All @@ -111,7 +110,7 @@ parameters:
# {{$enable_error_log := default true .enable_error_log}}
# {{$error_log_path := default "/var/log/nginx/error.log*" .error_log_path}}
# {{$start_at := default "end" .start_at}}
# {{$encoding := default "nop" .encoding}}
# {{$encoding := default "utf-8" .encoding}}

# Pipeline Template
pipeline:
Expand Down
7 changes: 3 additions & 4 deletions plugins/tail.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plugin Info
version: 1.0.0
version: 1.0.1
title: Tail
description: File Input Parser
min_stanza_version: 0.13.12
Expand Down Expand Up @@ -33,13 +33,12 @@ parameters:
description: The encoding of the log file.
type: enum
valid_values:
- nop
- utf-8
- utf-16le
- utf-16be
- ascii
- big5
default: nop
default: utf-8
- name: parse_format
label: Format
description: The log format to parse.
Expand All @@ -64,7 +63,7 @@ parameters:
# Set Defaults
# {{$enable_multiline := default false .enable_multiline}}
# {{$multiline_line_start_pattern := default "" .multiline_line_start_pattern}}
# {{$encoding := default "nop" .encoding}}
# {{$encoding := default "utf-8" .encoding}}
# {{$parse_format := default "none" .parse_format}}
# {{$log_type := default "tail" .log_type}}
# {{$start_at := default "end" .start_at}}
Expand Down
7 changes: 3 additions & 4 deletions plugins/w3c.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Plugin Info
version: 1.0.0
version: 1.0.1
title: W3C
description: File Input W3C Parser
min_stanza_version: 1.2.0
Expand All @@ -19,13 +19,12 @@ parameters:
description: Specify the encoding of the file(s) being read. In most cases, you can leave the default option selected.
type: enum
valid_values:
- nop
- utf-8
- utf-16le
- utf-16be
- ascii
- big5
default: nop
default: utf-8
- name: log_type
label: Type
description: Adds the specified 'Type' as a label to each log message.
Expand Down Expand Up @@ -89,7 +88,7 @@ parameters:
type: string
default: "\t"
# Set Defaults
# {{$encoding := default "nop" .encoding}}
# {{$encoding := default "utf-8" .encoding}}
# {{$log_type := default "w3c" .log_type}}
# {{$start_at := default "end" .start_at}}
# {{$delete_after_read := default false .delete_after_read}}
Expand Down