diff --git a/operator/builtin/input/syslog/syslog.go b/operator/builtin/input/syslog/syslog.go index 4dac2e89..e96c5c7a 100644 --- a/operator/builtin/input/syslog/syslog.go +++ b/operator/builtin/input/syslog/syslog.go @@ -1,7 +1,22 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package syslog import ( "fmt" + "github.com/open-telemetry/opentelemetry-log-collection/operator" "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/input/tcp" "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/input/udp" diff --git a/operator/builtin/input/syslog/syslog_test.go b/operator/builtin/input/syslog/syslog_test.go index eb7dfaca..a1abdcc8 100644 --- a/operator/builtin/input/syslog/syslog_test.go +++ b/operator/builtin/input/syslog/syslog_test.go @@ -1,7 +1,25 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package syslog import ( "fmt" + "net" + "testing" + "time" + "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/input/tcp" "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/input/udp" "github.com/open-telemetry/opentelemetry-log-collection/operator/builtin/parser/syslog" @@ -9,9 +27,6 @@ import ( "github.com/open-telemetry/opentelemetry-log-collection/testutil" "github.com/stretchr/testify/require" "gopkg.in/yaml.v2" - "net" - "testing" - "time" ) func TestSyslogInput(t *testing.T) { @@ -108,7 +123,6 @@ udp: require.Equal(t, "rfc5424", cfg.Protocol) require.Equal(t, "localhost:1234", cfg.Udp.ListenAddress) - base = `type: syslog_input protocol: rfc5424 tcp: diff --git a/operator/builtin/parser/syslog/data.go b/operator/builtin/parser/syslog/data.go index 5b1c5779..9a1a7b5d 100644 --- a/operator/builtin/parser/syslog/data.go +++ b/operator/builtin/parser/syslog/data.go @@ -1,8 +1,23 @@ +// Copyright The OpenTelemetry Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package syslog import ( - "github.com/open-telemetry/opentelemetry-log-collection/entry" "time" + + "github.com/open-telemetry/opentelemetry-log-collection/entry" ) type Case struct {