Skip to content

Commit

Permalink
[Sample Data] Add event.dataset to sample web logs (#48150)
Browse files Browse the repository at this point in the history
* [Sample Data] Add event.dataset to sample web logs

* Update saved_objects.js
  • Loading branch information
Zacqary authored Oct 15, 2019
1 parent 4b54b89 commit 97d0142
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 47 deletions.
99 changes: 53 additions & 46 deletions src/legacy/server/sample_data/data_sets/logs/field_mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,131 +26,138 @@ export const fieldMappings = {
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
geo: {
properties: {
srcdest: {
type: 'keyword'
type: 'keyword',
},
src: {
type: 'keyword'
type: 'keyword',
},
dest: {
type: 'keyword'
type: 'keyword',
},
coordinates: {
type: 'geo_point'
}
}
type: 'geo_point',
},
},
},
utc_time: {
type: 'date'
type: 'date',
},
url: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
message: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
host: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
clientip: {
type: 'ip'
type: 'ip',
},
response: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
machine: {
properties: {
ram: {
type: 'long'
type: 'long',
},
os: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
}
}
ignore_above: 256,
},
},
},
},
},
agent: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
bytes: {
type: 'long'
type: 'long',
},
tags: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
ignore_above: 256,
},
},
},
referer: {
type: 'keyword'
type: 'keyword',
},
ip: {
type: 'ip'
type: 'ip',
},
timestamp: {
type: 'date'
type: 'date',
},
'@timestamp': {
type: 'alias',
path: 'timestamp'
path: 'timestamp',
},
phpmemory: {
type: 'long'
type: 'long',
},
memory: {
type: 'double'
type: 'double',
},
extension: {
type: 'text',
fields: {
keyword: {
type: 'keyword',
ignore_above: 256
}
}
}
ignore_above: 256,
},
},
},
event: {
properties: {
dataset: {
type: 'keyword',
},
},
},
};
Binary file modified src/legacy/server/sample_data/data_sets/logs/logs.json.gz
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 97d0142

Please sign in to comment.