From 9de1ebf3b50cd12b8523f27f2d14815fca05f671 Mon Sep 17 00:00:00 2001 From: Michal Pristas Date: Thu, 20 Jun 2024 19:35:21 +0200 Subject: [PATCH] logsush --- pkg/testing/fixture_install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/testing/fixture_install.go b/pkg/testing/fixture_install.go index 138b9c0c64f..2aefd1551f9 100644 --- a/pkg/testing/fixture_install.go +++ b/pkg/testing/fixture_install.go @@ -248,7 +248,7 @@ func (f *Fixture) installNoPkgManager(ctx context.Context, installOpts *InstallO if runtime.GOOS == "windows" { filePath := filepath.Join(dir, "build", "diagnostics", fmt.Sprintf("TEST-%s-%s-%s-EventLogs.json", sanitizedTestName, f.operatingSystem, f.architecture)) - psCommand := `Get-EventLog -LogName Application -Source "Elastic Agent" -Newest 1000` + psCommand := `Get-EventLog -LogName Application -EntryType Error -Newest 1000` out, err := exec.Command("powershell", "-NoProfile", psCommand).CombinedOutput() if err != nil { f.t.Logf("error executing command: %s with output %s", err, string(out))