-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5892 from Bargs/ingest/patternReview
Ingest UI Pattern Review Screen
- Loading branch information
Showing
5 changed files
with
197 additions
and
7 deletions.
There are no files selected for viewing
33 changes: 29 additions & 4 deletions
33
src/plugins/kibana/public/settings/sections/indices/add_data_steps/pattern_review_step.html
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 |
---|---|---|
@@ -1,7 +1,32 @@ | ||
<h2>Pattern review step</h2> | ||
<div class="wizard-step-title"> | ||
<h3>Review the index pattern</h3> | ||
Here we'll define how and where to store your parsed events. We've made some intellient guesses for you, but most | ||
fields can be changed if we got it wrong! | ||
</div> | ||
|
||
<div> | ||
Docs: {{sampleDocs}} | ||
<div class="pattern-review"> | ||
<div> | ||
<label>Index name or pattern</label> | ||
<kbn-info info="Patterns allow you to define dynamic index names using * as a wildcard. Example: filebeat-*"></kbn-info> | ||
</div> | ||
<input ng-model="reviewStep.indexPattern.id" class="pattern-input"/> | ||
<label> | ||
<input ng-model="reviewStep.isTimeBased" type="checkbox"/> | ||
time based | ||
</label> | ||
<label ng-if="reviewStep.isTimeBased" class="time-field-input"> | ||
Time Field | ||
<select ng-model="reviewStep.indexPattern.timeFieldName" name="time_field_name"> | ||
<option ng-repeat="field in reviewStep.dateFields" value="{{field}}"> | ||
{{field}} | ||
</option> | ||
</select> | ||
</label> | ||
</div> | ||
|
||
<button ng-click="indexPattern = {id: 'logstash-*', title: 'myFirstIndexPattern'}">Create an index pattern</button> | ||
<div> | ||
<paginated-table | ||
columns="reviewStep.columns" | ||
rows="reviewStep.rows"> | ||
</paginated-table> | ||
</div> |
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
13 changes: 13 additions & 0 deletions
13
src/plugins/kibana/public/settings/sections/indices/partials/_edit_field_type.html
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,13 @@ | ||
<select ng-if="knownFieldTypes[field.name] !== 'geo_point'" name="field_type" ng-model="field.type" ng-change="buildRows()"> | ||
<option value="string">string</option> | ||
<option value="number">number</option> | ||
<option value="boolean">boolean</option> | ||
<option value="date">date</option> | ||
<option value="geo_point">geo_point</option> | ||
<option value="geo_shape">geo_shape</option> | ||
<option value="ip">ip</option> | ||
</select> | ||
|
||
<span ng-if="knownFieldTypes[field.name] === 'geo_point'"> | ||
geo_point | ||
</span> |
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