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

Update fields.yml to follow new structure #1874

Merged
merged 1 commit into from
Jun 16, 2016
Merged
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
45 changes: 4 additions & 41 deletions generate/beat/{{cookiecutter.beat}}/etc/fields.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,9 @@
defaults:
type: keyword
required: false
index: true

env:
type: group
description: >
Contains common fields available in all event types.
fields:
- type: group
name: beat
fields:
- name: name
description: >
The name of the Beat sending the log messages. If the shipper name is set
in the configuration file, then that value is used. If it is not set,
the hostname is used.
- name: hostname
description: >
The hostname as returned by the operating system on which the Beat is
running.
- name: "@timestamp"
type: date
required: true
format: YYYY-MM-DDTHH:MM:SS.milliZ
example: 2015-01-24T14:06:05.071Z
description: >
The timestamp when the log line was read. The precision is in
milliseconds. The timezone is UTC.
- name: type
required: true
description: >
PLEASE UPDATE DOCUMENTATION

{{ cookiecutter.beat }}:
- key: {{ cookiecutter.beat }}
title: {{ cookiecutter.beat }}
description:
fields:
- name: counter
type: integer
type: long
required: true
description: >
PLEASE UPDATE DOCUMENTATION

sections:
- ["env", "Common"]
- ["{{ cookiecutter.beat }}", "{{ cookiecutter.beat | capitalize }}"]