Skip to content

Commit

Permalink
remove date fields and hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
ali786XI committed Dec 29, 2023
1 parent a41521c commit 2bfa7e4
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ fields:
period: -24h # one day
- name: agent.id
value: "ef5e274d-4b53-45e6-943a-a5bcf1a6f523"
- name: host.name
cardinality: 100
- name: log.level
enum: ["debug", "info", "notice", "warn", "error", "crit", "alert", "emerg"]
- name: process.pid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
type: keyword
- name: connection_id
type: long
- name: event.created
type: date
- name: event.ingested
type: date
- name: host.ip
type: ip
- name: host.name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
{{- $pid := generate "process.pid" }}
{{- $threadId := generate "thread.id" }}
{{- $connectionId := generate "connection_id" }}
{{- $hostname := generate "host.name" }}
{
"@timestamp": "{{ $timestamp.Format "2006-01-02T15:04:05.000Z" }}",
"agent": {
Expand All @@ -32,23 +31,21 @@
},
"event": {
"agent_id_status": "verified",
"created": "{{ generate "event.created" | date "2006-01-02T15:04:05.000Z" }}",
"dataset": "nginx.error",
"ingested": "{{ generate "event.ingested" | date "2006-01-02T15:04:05.000Z" }}",
"timezone": "+00:00"
},
"host": {
"architecture": "x86_64",
"containerized": false,
"hostname": "{{ $hostname }}",
"hostname": "docker-fleet-agent",
"id": "66392b0697b84641af8006d87aeb89f1",
"ip": [
"{{ generate "host.ip" }}"
],
"mac": [
"02-42-AC-12-00-07"
],
"name": "{{ $hostname }}",
"name": "docker-fleet-agent",
"os": {
"codename": "focal",
"family": "debian",
Expand Down

0 comments on commit 2bfa7e4

Please sign in to comment.