feat: Add apache support
Some checks failed
build / build (push) Failing after 2m48s

This commit is contained in:
d3m0k1d
2026-01-27 16:59:32 +03:00
parent b9754f605b
commit 6ebda76738
2 changed files with 70 additions and 1 deletions

View File

@@ -112,6 +112,11 @@ var DaemonCmd = &cobra.Command{
ssh := parser.NewSshdParser()
ssh.Parse(p.Events(), entryCh)
}
if svc.Name == "apache" {
log.Info("Starting apache parser", "service", serviceName)
ap := parser.NewApacheParser()
ap.Parse(p.Events(), entryCh)
}
}(pars, svc.Name)
continue
}
@@ -138,7 +143,11 @@ var DaemonCmd = &cobra.Command{
log.Info("Starting ssh parser", "service", serviceName)
ssh := parser.NewSshdParser()
ssh.Parse(p.Events(), resultCh)
}
if svc.Name == "apache" {
log.Info("Starting apache parser", "service", serviceName)
ap := parser.NewApacheParser()
ap.Parse(p.Events(), resultCh)
}
}(pars, svc.Name)