Skip to content

Commit

Permalink
Only import go-libaudit on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkroh committed Jul 14, 2020
1 parent 4aaf64d commit 36385d5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
23 changes: 23 additions & 0 deletions auditbeat/module/auditd/audit.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Licensed to Elasticsearch B.V. under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
// ownership. Elasticsearch B.V. licenses this file to you 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 auditd

const (
moduleName = "auditd"
metricsetName = "auditd"
)
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,6 @@ import (
"github.com/elastic/go-libaudit/v2/rule/flags"
)

const (
moduleName = "auditd"
metricsetName = "auditd"
recursiveGlobDepth = 8
)

// Config defines the kernel metricset's possible configuration options.
type Config struct {
ResolveIDs bool `config:"resolve_ids"` // Resolve UID/GIDs to names.
Expand Down

0 comments on commit 36385d5

Please sign in to comment.