Skip to content

Commit 3de2668

Browse files
authored
mod: replace gopkg.in/natefinch/lumberjack.v2 with elastic fork (#51950)
1 parent c178eca commit 3de2668

17 files changed

Lines changed: 51 additions & 53 deletions

File tree

NOTICE.txt

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14349,6 +14349,38 @@ See the License for the specific language governing permissions and
1434914349
limitations under the License.
1435014350

1435114351

14352+
--------------------------------------------------------------------------------
14353+
Dependency : github.com/elastic/lumberjack
14354+
Version: v0.0.0-20260715013204-c5b60bbeaaab
14355+
Licence type (autodetected): MIT
14356+
--------------------------------------------------------------------------------
14357+
14358+
Contents of probable licence file $GOMODCACHE/github.com/elastic/lumberjack@v0.0.0-20260715013204-c5b60bbeaaab/LICENSE:
14359+
14360+
The MIT License (MIT)
14361+
14362+
Copyright (c) 2014 Nate Finch
14363+
Copyright (c) 2026 Elasticsearch B.V.
14364+
14365+
Permission is hereby granted, free of charge, to any person obtaining a copy
14366+
of this software and associated documentation files (the "Software"), to deal
14367+
in the Software without restriction, including without limitation the rights
14368+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14369+
copies of the Software, and to permit persons to whom the Software is
14370+
furnished to do so, subject to the following conditions:
14371+
14372+
The above copyright notice and this permission notice shall be included in all
14373+
copies or substantial portions of the Software.
14374+
14375+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14376+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14377+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14378+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14379+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
14380+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
14381+
SOFTWARE.
14382+
14383+
1435214384
--------------------------------------------------------------------------------
1435314385
Dependency : github.com/elastic/mito
1435414386
Version: v1.27.0
@@ -34787,36 +34819,6 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3478734819
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3478834820

3478934821

34790-
--------------------------------------------------------------------------------
34791-
Dependency : gopkg.in/natefinch/lumberjack.v2
34792-
Version: v2.2.1
34793-
Licence type (autodetected): MIT
34794-
--------------------------------------------------------------------------------
34795-
34796-
Contents of probable licence file $GOMODCACHE/gopkg.in/natefinch/lumberjack.v2@v2.2.1/LICENSE:
34797-
34798-
The MIT License (MIT)
34799-
34800-
Copyright (c) 2014 Nate Finch
34801-
34802-
Permission is hereby granted, free of charge, to any person obtaining a copy
34803-
of this software and associated documentation files (the "Software"), to deal
34804-
in the Software without restriction, including without limitation the rights
34805-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
34806-
copies of the Software, and to permit persons to whom the Software is
34807-
furnished to do so, subject to the following conditions:
34808-
34809-
The above copyright notice and this permission notice shall be included in all
34810-
copies or substantial portions of the Software.
34811-
34812-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
34813-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34814-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
34815-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
34816-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34817-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
34818-
SOFTWARE.
34819-
3482034822
--------------------------------------------------------------------------------
3482134823
Dependency : gopkg.in/yaml.v2
3482234824
Version: v2.4.0
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: bug-fix
2+
summary: Fix goroutine leak in request trace logging infrastructure.
3+
component: filebeat

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ require (
226226
go.uber.org/mock v0.5.0
227227
golang.org/x/term v0.44.0
228228
google.golang.org/genproto/googleapis/api v0.0.0-20260526163538-3dc84a4a5aaa
229-
gopkg.in/natefinch/lumberjack.v2 v2.2.1
230229
gopkg.in/yaml.v3 v3.0.1
231230
)
232231

@@ -237,6 +236,7 @@ require (
237236
github.com/coder/websocket v1.8.14
238237
github.com/elastic/entcollect v0.0.0-20260706024408-4a12ea00f54d
239238
github.com/elastic/gokrb5/v8 v8.0.0-20251105095404-23cc45e6a102
239+
github.com/elastic/lumberjack v0.0.0-20260715013204-c5b60bbeaaab
240240
github.com/jimlambrt/gldap v0.1.14
241241
github.com/mattn/go-sqlite3 v1.14.32
242242
github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/filestorage v0.155.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ github.com/elastic/gopacket v1.1.20-0.20260708143104-cfe2cc0f0cc7 h1:LTx9zlFG3yx
433433
github.com/elastic/gopacket v1.1.20-0.20260708143104-cfe2cc0f0cc7/go.mod h1:riddUzxTSBpJXk3qBHtYr4qOhFhT6k/1c0E3qkQjQpA=
434434
github.com/elastic/gosigar v0.14.4 h1:7NRnWJDFjEKpOjnHhtzrPGZWr9EMrYFsLjF4q0Czosk=
435435
github.com/elastic/gosigar v0.14.4/go.mod h1:tx91Eb3YgFk6y++h88fRAnxic3Si1ZDHooqnJU/hqo8=
436+
github.com/elastic/lumberjack v0.0.0-20260715013204-c5b60bbeaaab h1:p33sNyLrsWoIoRFL3E6hKajacBbsHuST8xW7y7cxGzY=
437+
github.com/elastic/lumberjack v0.0.0-20260715013204-c5b60bbeaaab/go.mod h1:t8v3y03G3KubyWgYqe+Jcxj/jDddnkp70743iSYrQiU=
436438
github.com/elastic/mito v1.27.0 h1:FM01Ql1OMx6uL3ogW0LoI8Ruc0O6gzmwLNBV8Zk13Yw=
437439
github.com/elastic/mito v1.27.0/go.mod h1:zFVE48AlN/iW7fryFDDPBh3yp1A4KWnkNuwxZt6HQ6A=
438440
github.com/elastic/mock-es v0.0.0-20250530054253-8c3b6053f9b6 h1:JVNuBrmOoqLJgp9o68YBMnOrXCzQI3mCppW+suwRSlw=
@@ -1548,8 +1550,6 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
15481550
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
15491551
gopkg.in/mcuadros/go-syslog.v2 v2.3.0 h1:kcsiS+WsTKyIEPABJBJtoG0KkOS6yzvJ+/eZlhD79kk=
15501552
gopkg.in/mcuadros/go-syslog.v2 v2.3.0/go.mod h1:l5LPIyOOyIdQquNg+oU6Z3524YwrcqEm0aKH+5zpt2U=
1551-
gopkg.in/natefinch/lumberjack.v2 v2.2.1 h1:bBRl1b0OH9s/DuPhuXpNl+VtCaJXFZ5/uEFST95x9zc=
1552-
gopkg.in/natefinch/lumberjack.v2 v2.2.1/go.mod h1:YD8tP3GAjkrDg1eZH7EGmyESg/lsYskCTPBJVb9jqSc=
15531553
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
15541554
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
15551555
gopkg.in/yaml.v1 v1.0.0-20140924161607-9f9df34309c0/go.mod h1:WDnlLJ4WF5VGsH/HVa3CI79GS0ol3YnhVnKP89i0kNg=

x-pack/filebeat/input/cel/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ import (
1313
"regexp"
1414
"time"
1515

16-
"gopkg.in/natefinch/lumberjack.v2"
1716
"gopkg.in/yaml.v3"
1817

1918
"github.com/elastic/beats/v7/x-pack/filebeat/otel"
2019
"github.com/elastic/elastic-agent-libs/logp"
2120
"github.com/elastic/elastic-agent-libs/transport/httpcommon"
21+
"github.com/elastic/lumberjack"
2222
"github.com/elastic/mito/lib"
2323
)
2424

x-pack/filebeat/input/entityanalytics/provider/azuread/fetcher/graph/graph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"go.elastic.co/ecszap"
2323
"go.uber.org/zap"
2424
"go.uber.org/zap/zapcore"
25-
"gopkg.in/natefinch/lumberjack.v2"
2625

2726
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics/internal/collections"
2827
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics/provider/azuread/authenticator"
@@ -33,6 +32,7 @@ import (
3332
"github.com/elastic/elastic-agent-libs/mapstr"
3433
"github.com/elastic/elastic-agent-libs/paths"
3534
"github.com/elastic/elastic-agent-libs/transport/httpcommon"
35+
"github.com/elastic/lumberjack"
3636
)
3737

3838
const (

x-pack/filebeat/input/entityanalytics/provider/azuread/fetcher/graph/graph_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ import (
2020
"github.com/gofrs/uuid/v5"
2121
"github.com/google/go-cmp/cmp"
2222
"github.com/stretchr/testify/require"
23-
"gopkg.in/natefinch/lumberjack.v2"
2423

2524
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics/internal/collections"
2625
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics/provider/azuread/authenticator/mock"
2726
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics/provider/azuread/fetcher"
2827
"github.com/elastic/elastic-agent-libs/config"
2928
"github.com/elastic/elastic-agent-libs/logp"
3029
"github.com/elastic/elastic-agent-libs/paths"
30+
"github.com/elastic/lumberjack"
3131
)
3232

3333
var trace = flag.Bool("request_trace", false, "enable request tracing during tests")

x-pack/filebeat/input/entityanalytics/provider/jamf/conf.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ import (
88
"errors"
99
"time"
1010

11-
"gopkg.in/natefinch/lumberjack.v2"
12-
1311
"github.com/elastic/elastic-agent-libs/transport/httpcommon"
12+
"github.com/elastic/lumberjack"
1413
)
1514

1615
// defaultConfig returns a default configuration.

x-pack/filebeat/input/entityanalytics/provider/jamf/conf_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,9 @@ import (
1010
"testing"
1111
"time"
1212

13-
"gopkg.in/natefinch/lumberjack.v2"
14-
1513
"github.com/elastic/elastic-agent-libs/config"
1614
"github.com/elastic/elastic-agent-libs/transport/httpcommon"
15+
"github.com/elastic/lumberjack"
1716
)
1817

1918
var validateTests = []struct {

x-pack/filebeat/input/entityanalytics/provider/jamf/jamf_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ import (
1919

2020
"github.com/gofrs/uuid/v5"
2121
"github.com/google/go-cmp/cmp"
22-
"gopkg.in/natefinch/lumberjack.v2"
2322

2423
"github.com/elastic/beats/v7/x-pack/filebeat/input/entityanalytics/provider/jamf/internal/jamf"
2524
"github.com/elastic/elastic-agent-libs/logp"
25+
"github.com/elastic/lumberjack"
2626
)
2727

2828
var trace = flag.Bool("request_trace", false, "enable request tracing during tests")

0 commit comments

Comments
 (0)