-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Logs Sample Data #22276
Merged
alexfrancoeur
merged 26 commits into
elastic:master
from
alexfrancoeur:logs_sample_data
Aug 29, 2018
Merged
Logs Sample Data #22276
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
fa05b8a
first take at logs sample data
f8df0e8
typo
d690cd6
smaller and same sized images and function rename
74176da
fixed index pattern so that it matches dataset
3213662
some dashboard tweaks
ef08257
tests and updated data set
06bfaf2
first take at logs sample data
9f497d3
typo
cd7c407
smaller and same sized images and function rename
1aa2d16
fixed index pattern so that it matches dataset
1f26258
some dashboard tweaks
19e5c3c
tests and updated data set
97b98ce
Asawari prettied up the dashboard
19949cf
Merge branch 'master' of https://github.com/elastic/kibana into logs_…
040f765
Asawari prettied up the dashboard
1ac6cda
Asawari prettied up the dashboard
0a9ab0b
updated screenshot
1fd97d7
updated dashboard and screenshot
012d24c
Merge branch 'master' of http://github.com/elastic/kibana into logs_s…
46b62ed
modify flaky tests
4faa639
Merge branch 'master' of https://github.com/elastic/kibana into logs_…
b6086c8
Merge branch 'logs_sample_data' of http://github.com/alexfrancoeur/ki…
41ce8f6
remove flaky test
2fc50b0
really listening to Nathan this time
b6faa50
really listening to Nathan this time (for real)
b694f12
incorporated Alonas suggestions
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-738 KB
(8.8%)
src/core_plugins/kibana/public/home/sample_data_resources/flights/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+98.1 KB
src/core_plugins/kibana/public/home/sample_data_resources/logs/dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,4 @@ | |
*/ | ||
|
||
export { flightsSpecProvider } from './flights'; | ||
export { logsSpecProvider } from './logs'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
/* | ||
* 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. | ||
*/ | ||
|
||
import path from 'path'; | ||
import { savedObjects } from './saved_objects'; | ||
|
||
export function logsSpecProvider() { | ||
return { | ||
id: 'logs', | ||
name: 'Sample web logs', | ||
description: 'Sample data, visualizations, and dashboards for monitoring web logs.', | ||
previewImagePath: '/plugins/kibana/home/sample_data_resources/logs/dashboard.png', | ||
overviewDashboard: 'edf84fe0-e1a0-11e7-b6d5-4dc382ef7f5b', | ||
defaultIndex: '90943e30-9a47-11e8-b64d-95841ca0b247', | ||
dataPath: path.join(__dirname, './logs.json.gz'), | ||
fields: { | ||
request: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
geo: { | ||
properties: { | ||
srcdest: { | ||
type: 'keyword' | ||
}, | ||
src: { | ||
type: 'keyword' | ||
}, | ||
dest: { | ||
type: 'keyword' | ||
}, | ||
coordinates: { | ||
type: 'geo_point' | ||
} | ||
} | ||
}, | ||
utc_time: { | ||
type: 'date' | ||
}, | ||
url: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
message: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
host: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
clientip: { | ||
type: 'ip' | ||
}, | ||
response: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
machine: { | ||
properties: { | ||
ram: { | ||
type: 'long' | ||
}, | ||
os: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
agent: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
bytes: { | ||
type: 'long' | ||
}, | ||
tags: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
}, | ||
referer: { | ||
type: 'keyword' | ||
}, | ||
ip: { | ||
type: 'ip' | ||
}, | ||
timestamp: { | ||
type: 'date' | ||
}, | ||
phpmemory: { | ||
type: 'long' | ||
}, | ||
memory: { | ||
type: 'double' | ||
}, | ||
extension: { | ||
type: 'text', | ||
fields: { | ||
keyword: { | ||
type: 'keyword', | ||
ignore_above: 256 | ||
} | ||
} | ||
} | ||
}, | ||
timeFields: ['timestamp'], | ||
currentTimeMarker: '2018-08-01T00:00:00', | ||
preserveDayOfWeekTimeOfDay: true, | ||
savedObjects: savedObjects, | ||
}; | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not get this test to pass locally. At this point, the browser is on the
flights
dashboard so it can not findlogs
sample data card. I think you should just be able to change theafter
block (line 67) toafterEach
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nreese I think I should be good now, modified to
afterEach