mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-08 23:37:08 +02:00
Add label parameter
Signed-off-by: Kenji Okimoto <okimoto@clear-code.com>
This commit is contained in:
parent
af2e5e7c39
commit
c54ead20f1
@ -12,6 +12,7 @@ class Fluentd
|
|||||||
|
|
||||||
def self.permit_params
|
def self.permit_params
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern, :log_level, :@log_level,
|
:pattern, :log_level, :@log_level,
|
||||||
{ and: {regexp: [:key, :pattern], exclude: [:key, :pattern]} },
|
{ and: {regexp: [:key, :pattern], exclude: [:key, :pattern]} },
|
||||||
{ or: {regexp: [:key, :pattern], exclude: [:key, :pattern]} }
|
{ or: {regexp: [:key, :pattern], exclude: [:key, :pattern]} }
|
||||||
@ -20,7 +21,8 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:pattern
|
:label,
|
||||||
|
:pattern,
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern,
|
:pattern,
|
||||||
:key_name,
|
:key_name,
|
||||||
]
|
]
|
||||||
|
@ -14,6 +14,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern,
|
:pattern,
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
@ -19,6 +19,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern,
|
:pattern,
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
@ -7,6 +7,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:bind, :port
|
:bind, :port
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
@ -23,7 +23,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:bind, :port, :add_http_headers, :add_remote_addr
|
:label, :bind, :port, :add_http_headers, :add_remote_addr
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:bind, :port, :tag
|
:label, :bind, :port, :tag
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -19,7 +19,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:tag, :bind, :port
|
:label, :tag, :bind, :port
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern, :host, :port, :logstash_format,
|
:pattern, :host, :port, :logstash_format,
|
||||||
:index_name, :type_name,
|
:index_name, :type_name,
|
||||||
]
|
]
|
||||||
|
@ -33,7 +33,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:pattern, :server, :secondary,
|
:label, :pattern, :server, :secondary,
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern, :host, :port, :database, :collection,
|
:pattern, :host, :port, :database, :collection,
|
||||||
:tag_mapped, :user, :password,
|
:tag_mapped, :user, :password,
|
||||||
]
|
]
|
||||||
|
@ -26,6 +26,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
|
:label,
|
||||||
:pattern,
|
:pattern,
|
||||||
:s3_region, :s3_bucket, :use_ssl, :path,
|
:s3_region, :s3_bucket, :use_ssl, :path,
|
||||||
]
|
]
|
||||||
|
@ -26,7 +26,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:pattern, :output_type
|
:label, :pattern, :output_type
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class Fluentd
|
|||||||
|
|
||||||
def common_options
|
def common_options
|
||||||
[
|
[
|
||||||
:pattern, :apikey, :auto_create_table, :database, :table,
|
:label, :pattern, :apikey, :auto_create_table, :database, :table,
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
= f.hidden_field(key)
|
= f.hidden_field(key)
|
||||||
= f.field(key, disabled: true)
|
= f.field(key, disabled: true)
|
||||||
|
|
||||||
|
= form.field(:label)
|
||||||
= form.field(:tag)
|
= form.field(:tag)
|
||||||
= form.field(:pos_file)
|
= form.field(:pos_file)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user