Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make fields.yml part of the binary #4834

Merged
merged 2 commits into from
May 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ https://github.com/elastic/beats/compare/v6.2.3...master[Check the HEAD diff]
- Add a default seccomp (secure computing) filter on Linux that prohibits
execve, execveat, fork, and vfork syscalls. A custom policy can be configured. {issue}5213[5213]
- Update Sarama to v1.16.0, adding better support for kafka 0.11, 1.0, and 1.1 {pull}7025[7025]
- Ship fields.yml as part of the binary {pull}4834[4834]

*Auditbeat*

Expand Down
19 changes: 19 additions & 0 deletions auditbeat/include/fields.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// ${ES_BEATS}/dev-tools/cmd/asset/asset.go
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT

package include

import (
"github.com/elastic/beats/libbeat/asset"
)

func init() {
if err := asset.SetFields("auditbeat/fields.yml", Asset); err != nil {
panic(err)
}
}

// Asset returns asset data
func Asset() string {
return "eJzsXVuT2zaWfvevQOXFTlW3Erdj15QfprZjz0y6JpmkxvFeamtLDZGHFNIkQAOg1Mqv3zoHAAleJBHqzuzL+sG2JOI7uBycO8AX1+wBDu/ZBrh9wZgVtoL37Hv3KQeTadFYoeR79ucXjDH2QUnLhTQsU3WtJLVjhYAqN4zvuKj4pgImJONVxWAH0jJ7aMCsXjD/2PsXBHTNJK/BEV7hf+nbWZr459ctUAOmCma3QD1kBmQuZElfVKpkNRjDSzArdhc9Rc2E6aAMWOwg/p4pWYiy1RzJsUJUcIX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B7c3N2PhFzORsg5nkOMFuesPiffrhdsO6IuU4bPT2/DDdpBuj5RbiJs7BeOg8JzE+4CzjfbHka6mLMxFV7+/rmm2XrRthJK0fY82v3vwEAAP//EKKV1A=="
}
89 changes: 89 additions & 0 deletions dev-tools/cmd/asset/asset.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// +build ignore

package main

import (
"bytes"
"flag"
"fmt"
"go/format"
"io/ioutil"
"os"
"text/template"

"github.com/elastic/beats/libbeat/asset"
)

var pkg *string

func init() {
pkg = flag.String("pkg", "", "Package name")
}

var tpl = template.Must(template.New("normalizations").Parse(`
// ${ES_BEATS}/dev-tools/cmd/asset/asset.go
// MACHINE GENERATED BY THE ABOVE COMMAND; DO NOT EDIT
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be changed to Code generated by beats/dev-tools/cmd/asset/asset.go - DO NOT EDIT. Or something that matches this pattern golang/go#13560 (comment). Then tools like IntelliJ and golint will recognize it as being generated.


package {{ .Package }}

import (
"github.com/elastic/beats/libbeat/asset"
)

func init() {
if err := asset.SetFields("{{ .Name }}", Asset); err != nil {
panic(err)
}
}

// Asset returns asset data
func Asset() string {
return "{{ .Data }}"
}

`))

type assetData struct {
Name string
Data string
Package string
}

func main() {
flag.Parse()

args := flag.Args()
if len(args) != 2 {
fmt.Fprintln(os.Stderr, "File path must be set")
os.Exit(1)
}

file := args[0]
beatName := args[1]

data, err := ioutil.ReadFile(file)
if err != nil {
fmt.Fprintln(os.Stderr, "Invalid file path: %s", args[0])
os.Exit(1)
}

encData, err := asset.EncodeData(string(data))
if err != nil {
fmt.Fprintln(os.Stderr, "Error encoding the data: %s", err)
os.Exit(1)
}

var buf bytes.Buffer
tpl.Execute(&buf, assetData{
Name: beatName + "/" + file,
Data: encData,
Package: *pkg,
})

bs, err := format.Source(buf.Bytes())
if err != nil {
panic(err)
}

os.Stdout.Write(bs)
}
2 changes: 1 addition & 1 deletion dev-tools/cmd/kibana_index_pattern/kibana_index_pattern.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func main() {
flag.Parse()

if *index == "" {
fmt.Fprint(os.Stderr, "The name of the index pattern msut be set.")
fmt.Fprint(os.Stderr, "The name of the index pattern must be set.")
os.Exit(1)
}

Expand Down
Loading