Skip to content
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
1 change: 1 addition & 0 deletions migrations/inputs_sflow/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ func migrate(tbl *ast.Table) ([]byte, string, error) {

// Use a map for the new plugin and fill in the data
plugin["service_address"] = old.ServiceAddress
plugin["protocol"] = "sflow v5"
if old.ReadBufferSize != "" {
plugin["read_buffer_size"] = old.ReadBufferSize
}
Expand Down
1 change: 1 addition & 0 deletions migrations/inputs_sflow/testcases/filters/expected.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[[inputs.netflow]]
service_address = "udp://:6343"
protocol = "sflow v5"
read_buffer_size = "32KiB"
fieldinclude = ["a"]
name_override = "foo"
Expand Down
1 change: 1 addition & 0 deletions migrations/inputs_sflow/testcases/minimal/expected.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[[inputs.netflow]]
service_address = "udp://:6343"
protocol = "sflow v5"
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[[inputs.netflow]]
service_address = "udp://:6343"
protocol = "sflow v5"
read_buffer_size = "32KiB"
Loading