}</style><spanng-show="panel.spyable"style="position:absolute;right:0px;top:0px"class="panelextra pointer"><ibs-modal="'app/partials/inspector.html'"class="icon-eye-open"></i></span><divclass="row-fluid"><divng-class="{'span3':panel.field_list}"ng-show="panel.field_list"><divclass="sidebar-nav"><h5>Fields <iclass="icon-chevron-sign-left pointer"ng-click="panel.field_list = !panel.field_list"bs-tooltip="'Hide field list'"ng-show="panel.field_list"></i></h5><ulclass="unstyled"style="{{panel.overflow}}:{{panel.height || row.height}};overflow-y:auto;overflow-x:hidden"><ling-style="panel.style"ng-repeat="field in fields.list"><iclass="pointer"ng-class="{'icon-check': _.contains(panel.fields,field),'icon-check-empty': !_.contains(panel.fields,field)}"ng-click="toggle_field(field)"></i><aclass="pointer"data-unique="1"bs-popover="'app/panels/table/micropanel.html'"data-placement="right"ng-click="toggle_micropanel(field)"ng-class="{label: _.contains(panel.fields,field)}">{{field}}</a></li></ul></div></div><divstyle="{{panel.overflow}}:{{panel.height || row.height}}"ng-class="{'span9':panel.field_list,'span12':!panel.field_list}"class="table-doc-table"><iclass="pull-left icon-chevron-sign-right pointer"ng-click="panel.field_list = !panel.field_list"bs-tooltip="'Show field list'"ng-show="!panel.field_list"></i><divclass="row-fluid"ng-show="panel.paging"><divclass="span1 offset1"style="text-align:right"><ing-click="panel.offset = 0"ng-show="panel.offset > 0"class="icon-circle-arrow-left pointer"></i><ing-click="panel.offset = (panel.offset - panel.size)"ng-show="panel.offset > 0"class="icon-arrow-left pointer"></i></div><divclass="span8"style="text-align:center"><strong>{{panel.offset}}</strong> to <strong>{{panel.offset + data.slice(panel.offset,panel.offset+panel.size).length}}</strong><small>of {{data.length}} available for paging</small></div><divclass="span1"style="text-align:left"><ing-click="panel.offset = (panel.offset + panel.size)"ng-show="data.length > panel.offset+panel.size"class="icon-arrow-right pointer"></i></div></div><tableclass="table-hover table table-condensed"ng-style="panel.style"><theadng-show="panel.header"><thng-show="panel.fields.length<1">_source (select columns from the list to the left)</th><thstyle="white-space:nowrap"ng-repeat="field in panel.fields"><ing-show="!$first"class="pointer link icon-caret-left"ng-click="_.move(panel.fields,$index,$index-1)"></i><spanclass="pointer"ng-click="set_sort(field)"ng-show="panel.sortable">{{field}} <ing-show="field == panel.sort[0]"class="pointer link"ng-class="{'icon-chevron-up': panel.sort[1] == 'asc','icon-chevron-down': panel.sort[1] == 'desc'}"></i></span><spanng-show="!panel.sortable">{{field}}</span><ing-show="!$last"class="pointer link icon-caret-right"ng-click="_.move(panel.fields,$index,$index+1)"></i></th></thead><tbodyng-repeat="event in data | slice:panel.offset:panel.offset+panel.size"ng-class-odd="'odd'"><trng-click="toggle_details(event)"class="pointer"><tdng-show="panel.fields.length<1">{{event._source|stringify|tableTruncate:panel.trimFactor:1}}</td><tdng-show="panel.fields.length>0"ng-repeat="field in panel.fields"ng-bind-html-unsafe="(event.highlight[field]||event._source[field]) |tableHighlight | tableTruncate:panel.trimFactor:panel.fields.length"></td></tr><trng-show="event.kibana.details"><tdcolspan="1000"><tableclass="table table-bordered table-condensed"><thead><th>Field</th><th>Action</th><th>Value</th></thead><trng-repeat="(key,value) in event.kibana.details._source"ng-class-odd="'odd'"><td>{{key}}</td><tdstyle="white-space:nowrap"><iclass="icon-search pointer"ng-click="build_search(key,value)"bs-tooltip="'Add filter to match this value'"></i><iclass="icon-ban-circle pointer"ng-click="build_search(key,value,true)"bs-tooltip="'Add filter to NOT match this value'"></i><iclass="pointer icon-th"ng-click="toggle_field(key)"bs-tooltip="'Toggle table column'"></i></td><tdstyle="white-space:pre-wrap"ng-bind-html-unsafe="value|noXml|urlLink|stringify"></td></tr></table></td></tr></tbody></table><divclass="row-fluid"ng-show="panel.paging"><divclass="span1 offset3"style="text-align:right"><ing-click="panel.offset = 0"ng-show="panel.offset > 0"class="icon-circle-arrow-left pointer"></i><ing-click="panel.offset = (panel.offset - panel.size)"ng-show="panel.offset > 0"class="icon-arrow-left pointer"></i></div><divclass="span4"style="text-align:center"><strong>{{panel.offset}}</strong> to <strong>{{panel.offset + data.slice(panel.offset,panel.offset+panel.size).length}}</strong><small>of {{data.length}} available for paging</small></div><divclass="span1"style="text-align:left"><ing-click="panel.offset = (panel.offset + panel.size)"ng-show="data.length > panel.offset+panel.size"class="icon-arrow-right pointer"></i></div></div></div></div></div>
}</style><spanng-show="panel.spyable"style="position:absolute;right:0px;top:0px"class="panelextra pointer"><ibs-modal="'app/partials/inspector.html'"class="icon-eye-open"></i></span><divclass="row-fluid"><divng-class="{'span3':panel.field_list}"ng-show="panel.field_list"><divclass="sidebar-nav"><h5>Fields <iclass="icon-chevron-sign-left pointer"ng-click="panel.field_list = !panel.field_list"bs-tooltip="'Hide field list'"ng-show="panel.field_list"></i></h5><ulclass="unstyled"style="{{panel.overflow}}:{{panel.height || row.height}};overflow-y:auto;overflow-x:hidden"><ling-style="panel.style"ng-repeat="field in fields.list"><iclass="pointer"ng-class="{'icon-check': _.contains(panel.fields,field),'icon-check-empty': !_.contains(panel.fields,field)}"ng-click="toggle_field(field)"></i><aclass="pointer"data-unique="1"bs-popover="'app/panels/table/micropanel.html'"data-placement="right"ng-click="toggle_micropanel(field,true)"ng-class="{label: _.contains(panel.fields,field)}">{{field}}</a></li></ul></div></div><divstyle="{{panel.overflow}}:{{panel.height || row.height}}"ng-class="{'span9':panel.field_list,'span12':!panel.field_list}"class="table-doc-table"><iclass="pull-left icon-chevron-sign-right pointer"ng-click="panel.field_list = !panel.field_list"bs-tooltip="'Show field list'"ng-show="!panel.field_list"></i><divclass="row-fluid"ng-show="panel.paging"><divclass="span1 offset1"style="text-align:right"><ing-click="panel.offset = 0"ng-show="panel.offset > 0"class="icon-circle-arrow-left pointer"></i><ing-click="panel.offset = (panel.offset - panel.size)"ng-show="panel.offset > 0"class="icon-arrow-left pointer"></i></div><divclass="span8"style="text-align:center"><strong>{{panel.offset}}</strong> to <strong>{{panel.offset + data.slice(panel.offset,panel.offset+panel.size).length}}</strong><small>of {{data.length}} available for paging</small></div><divclass="span1"style="text-align:left"><ing-click="panel.offset = (panel.offset + panel.size)"ng-show="data.length > panel.offset+panel.size"class="icon-arrow-right pointer"></i></div></div><tableclass="table-hover table table-condensed"ng-style="panel.style"><theadng-show="panel.header"><thng-show="panel.fields.length<1">_source (select columns from the list to the left)</th><thstyle="white-space:nowrap"ng-repeat="field in panel.fields"><ing-show="!$first"class="pointer link icon-caret-left"ng-click="_.move(panel.fields,$index,$index-1)"></i><spanclass="pointer"ng-click="set_sort(field)"ng-show="panel.sortable">{{field}} <ing-show="field == panel.sort[0]"class="pointer link"ng-class="{'icon-chevron-up': panel.sort[1] == 'asc','icon-chevron-down': panel.sort[1] == 'desc'}"></i></span><spanng-show="!panel.sortable">{{field}}</span><ing-show="!$last"class="pointer link icon-caret-right"ng-click="_.move(panel.fields,$index,$index+1)"></i></th></thead><tbodyng-repeat="event in data | slice:panel.offset:panel.offset+panel.size"ng-class-odd="'odd'"><trng-click="toggle_details(event)"class="pointer"><tdng-show="panel.fields.length<1">{{event._source|stringify|tableTruncate:panel.trimFactor:1}}</td><tdng-show="panel.fields.length>0"ng-repeat="field in panel.fields"ng-bind-html-unsafe="(event.highlight[field]||event._source[field]) |tableHighlight | tableTruncate:panel.trimFactor:panel.fields.length"></td></tr><trng-show="event.kibana.details"><tdcolspan="1000"><tableclass="table table-bordered table-condensed"><thead><th>Field</th><th>Action</th><th>Value</th></thead><trng-repeat="(key,value) in event.kibana.details._source"ng-class-odd="'odd'"><td>{{key}}</td><tdstyle="white-space:nowrap"><iclass="icon-search pointer"ng-click="build_search(key,value)"bs-tooltip="'Add filter to match this value'"></i><iclass="icon-ban-circle pointer"ng-click="build_search(key,value,true)"bs-tooltip="'Add filter to NOT match this value'"></i><iclass="pointer icon-th"ng-click="toggle_field(key)"bs-tooltip="'Toggle table column'"></i></td><tdstyle="white-space:pre-wrap"ng-bind-html-unsafe="value|noXml|urlLink|stringify"></td></tr></table></td></tr></tbody></table><divclass="row-fluid"ng-show="panel.paging"><divclass="span1 offset3"style="text-align:right"><ing-click="panel.offset = 0"ng-show="panel.offset > 0"class="icon-circle-arrow-left pointer"></i><ing-click="panel.offset = (panel.offset - panel.size)"ng-show="panel.offset > 0"class="icon-arrow-left pointer"></i></div><divclass="span4"style="text-align:center"><strong>{{panel.offset}}</strong> to <strong>{{panel.offset + data.slice(panel.offset,panel.offset+panel.size).length}}</strong><small>of {{data.length}} available for paging</small></div><divclass="span1"style="text-align:left"><ing-click="panel.offset = (panel.offset + panel.size)"ng-show="data.length > panel.offset+panel.size"class="icon-arrow-right pointer"></i></div></div></div></div></div>
define("panels/table/module",["angular","app","underscore","kbn","moment"],function(a,b,c,d,e){varf=a.module("kibana.panels.table",[]);b.useModule(f),f.controller("table",["$rootScope","$scope","fields","querySrv","dashboard","filterSrv",function(b,e,f,g,h,i){e.panelMeta={editorTabs:[{title:"Paging",src:"app/panels/table/pagination.html"},{title:"Queries",src:"app/partials/querySelect.html"}],status:"Stable",description:"A paginated table of records matching your query or queries. Click on a row to expand it and review all of the fields associated with that document. <p>"};varj={status:"Stable",queries:{mode:"all",ids:[]},size:100,pages:5,offset:0,sort:["_score","desc"],group:"default",style:{"font-size":"9pt"},overflow:"min-height",fields:[],highlight:[],sortable:!0,header:!0,paging:!0,field_list:!0,trimFactor:300,normTimes:!0,spyable:!0};c.defaults(e.panel,j),e.init=function(){e.Math=Math,e.$on("refresh",function(){e.get_data()}),e.fields=f,e.get_data()},e.percent=d.to_percent,e.toggle_micropanel=function(a){varb=c.pluck(e.data,"_source");e.micropanel={field:a,values:d.top_field_values(b,a,10),related:d.get_related_fields(b,a),count:c.countBy(b,function(b){returnc.contains(c.keys(b),a)})["true"]}},e.micropanelColor=function(a){varb=["bar-success","bar-warning","bar-danger","bar-info","bar-primary"];returna>b.length?"":b[a]},e.set_sort=function(a){e.panel.sort[0]===a?e.panel.sort[1]="asc"===e.panel.sort[1]?"desc":"asc":e.panel.sort[0]=a,e.get_data()},e.toggle_field=function(a){c.indexOf(e.panel.fields,a)>-1?e.panel.fields=c.without(e.panel.fields,a):e.panel.fields.push(a)},e.toggle_highlight=function(a){c.indexOf(e.panel.highlight,a)>-1?e.panel.highlight=c.without(e.panel.highlight,a):e.panel.highlight.push(a)},e.toggle_details=function(a){a.kibana=a.kibana||{},a.kibana.details=a.kibana.details?!1:e.without_kibana(a)},e.page=function(a){e.panel.offset=a*e.panel.size,e.get_data()},e.build_search=function(b,d,f){varg;c.isArray(d)?g="("+c.map(d,function(b){returna.toJson(b)}).join(" AND ")+")":c.isUndefined(d)?(g="*",f=!f):g=a.toJson(d),i.set({type:"field",field:b,query:g,mandate:f?"mustNot":"must"}),e.panel.offset=0,h.refresh()},e.fieldExists=function(a,b){i.set({type:"exists",field:a,mandate:b}),h.refresh()},e.get_data=function(a,b){if(e.panel.error=!1,0!==h.indices.length){e.panelMeta.loading=!0,e.panel.queries.ids=g.idsByMode(e.panel.queries);varf=c.isUndefined(a)?0:a;e.segment=f;varj=e.ejs.Request().indices(h.indices[f]),k=e.ejs.BoolQuery();c.each(e.panel.queries.ids,function(a){k=k.should(g.getEjsObj(a))}),j=j.query(e.ejs.FilteredQuery(k,i.getBoolFilter(i.ids))).highlight(e.ejs.Highlight(e.panel.highlight).fragmentSize(2147483647).preTags("@start-highlight@").postTags("@end-highlight@")).size(e.panel.size*e.panel.pages).sort(e.panel.sort[0],e.panel.sort[1]),e.populate_modal(j);varl=j.doSearch();l.then(function(a){returne.panelMeta.loading=!1,0===f&&(e.hits=0,e.data=[],b=e.query_id=(newDate).getTime()),c.isUndefined(a.error)?(e.query_id===b&&(e.data=e.data.concat(c.map(a.hits.hits,function(a){return{_source:d.flatten_json(a._source),highlight:d.flatten_json(a.highlight||{}),_type:a._type,_index:a._index,_id:a._id,_sort:a.sort}})),e.hits+=a.hits.total,e.data=c.sortBy(e.data,function(a){returna._sort[0]}),"desc"===e.panel.sort[1]&&e.data.reverse(),e.data=e.data.slice(0,e.panel.size*e.panel.pages),(e.data.length<e.panel.size*e.panel.pages||!c.contains(i.timeField(),e.panel.sort[0])||"desc"!==e.panel.sort[1])&&f+1<h.indices.length&&e.get_data(f+1,e.query_id)),void0):(e.panel.error=e.parse_error(a.error),void0)})}},e.populate_modal=function(b){e.inspector=a.toJson(JSON.parse(b.toString()),!0)},e.without_kibana=function(a){return{_source:a._source,highlight:a.highlight}},e.set_refresh=function(a){e.refresh=a},e.close_edit=function(){e.refresh&&e.get_data(),e.refresh=!1}}]),f.filter("tableHighlight",function(){returnfunction(a){return!c.isUndefined(a)&&!c.isNull(a)&&a.toString().length>0?a.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r?\n/g,"<br/>").replace(/@start-highlight@/g,'<code class="highlight">').replace(/@end-highlight@/g,"</code>"):""}}),f.filter("tableTruncate",function(){returnfunction(a,b,d){return!c.isUndefined(a)&&!c.isNull(a)&&a.toString().length>0?a.length>b/d?a.substr(0,b/d)+"...":a:""}}),f.filter("tableFieldFormat",["fields",function(a){returnfunction(b,d,f,g){varh;returnc.isUndefined(a.mapping[f._index])||c.isUndefined(a.mapping[f._index][f._type])||(h=a.mapping[f._index][f._type][d].type,"date"!==h||!g.panel.normTimes)?b:e(b).format("YYYY-MM-DD HH:mm:ss")}}])});
define("panels/table/module",["angular","app","underscore","kbn","moment"],function(a,b,c,d,e){varf=a.module("kibana.panels.table",[]);b.useModule(f),f.controller("table",["$rootScope","$scope","fields","querySrv","dashboard","filterSrv",function(b,e,f,g,h,i){e.panelMeta={editorTabs:[{title:"Paging",src:"app/panels/table/pagination.html"},{title:"Queries",src:"app/partials/querySelect.html"}],status:"Stable",description:"A paginated table of records matching your query or queries. Click on a row to expand it and review all of the fields associated with that document. <p>"};varj={status:"Stable",queries:{mode:"all",ids:[]},size:100,pages:5,offset:0,sort:["_score","desc"],group:"default",style:{"font-size":"9pt"},overflow:"min-height",fields:[],highlight:[],sortable:!0,header:!0,paging:!0,field_list:!0,trimFactor:300,normTimes:!0,spyable:!0};c.defaults(e.panel,j),e.init=function(){e.Math=Math,e.$on("refresh",function(){e.get_data()}),e.fields=f,e.get_data()},e.percent=d.to_percent,e.toggle_micropanel=function(a,b){varf=c.pluck(e.data,"_source"),g=d.top_field_values(f,a,10,b);e.micropanel={field:a,grouped:b,values:g.counts,hasArrays:g.hasArrays,related:d.get_related_fields(f,a),count:c.countBy(f,function(b){returnc.contains(c.keys(b),a)})["true"]}},e.micropanelColor=function(a){varb=["bar-success","bar-warning","bar-danger","bar-info","bar-primary"];returna>b.length?"":b[a]},e.set_sort=function(a){e.panel.sort[0]===a?e.panel.sort[1]="asc"===e.panel.sort[1]?"desc":"asc":e.panel.sort[0]=a,e.get_data()},e.toggle_field=function(a){c.indexOf(e.panel.fields,a)>-1?e.panel.fields=c.without(e.panel.fields,a):e.panel.fields.push(a)},e.toggle_highlight=function(a){c.indexOf(e.panel.highlight,a)>-1?e.panel.highlight=c.without(e.panel.highlight,a):e.panel.highlight.push(a)},e.toggle_details=function(a){a.kibana=a.kibana||{},a.kibana.details=a.kibana.details?!1:e.without_kibana(a)},e.page=function(a){e.panel.offset=a*e.panel.size,e.get_data()},e.build_search=function(b,d,f){varg;c.isArray(d)?g="("+c.map(d,function(b){returna.toJson(b)}).join(" AND ")+")":c.isUndefined(d)?(g="*",f=!f):g=a.toJson(d),i.set({type:"field",field:b,query:g,mandate:f?"mustNot":"must"}),e.panel.offset=0,h.refresh()},e.fieldExists=function(a,b){i.set({type:"exists",field:a,mandate:b}),h.refresh()},e.get_data=function(a,b){if(e.panel.error=!1,0!==h.indices.length){e.panelMeta.loading=!0,e.panel.queries.ids=g.idsByMode(e.panel.queries);varf=c.isUndefined(a)?0:a;e.segment=f;varj=e.ejs.Request().indices(h.indices[f]),k=e.ejs.BoolQuery();c.each(e.panel.queries.ids,function(a){k=k.should(g.getEjsObj(a))}),j=j.query(e.ejs.FilteredQuery(k,i.getBoolFilter(i.ids))).highlight(e.ejs.Highlight(e.panel.highlight).fragmentSize(2147483647).preTags("@start-highlight@").postTags("@end-highlight@")).size(e.panel.size*e.panel.pages).sort(e.panel.sort[0],e.panel.sort[1]),e.populate_modal(j);varl=j.doSearch();l.then(function(a){returne.panelMeta.loading=!1,0===f&&(e.hits=0,e.data=[],b=e.query_id=(newDate).getTime()),c.isUndefined(a.error)?(e.query_id===b&&(e.data=e.data.concat(c.map(a.hits.hits,function(a){return{_source:d.flatten_json(a._source),highlight:d.flatten_json(a.highlight||{}),_type:a._type,_index:a._index,_id:a._id,_sort:a.sort}})),e.hits+=a.hits.total,e.data=c.sortBy(e.data,function(a){returna._sort[0]}),"desc"===e.panel.sort[1]&&e.data.reverse(),e.data=e.data.slice(0,e.panel.size*e.panel.pages),(e.data.length<e.panel.size*e.panel.pages||!c.contains(i.timeField(),e.panel.sort[0])||"desc"!==e.panel.sort[1])&&f+1<h.indices.length&&e.get_data(f+1,e.query_id)),void0):(e.panel.error=e.parse_error(a.error),void0)})}},e.populate_modal=function(b){e.inspector=a.toJson(JSON.parse(b.toString()),!0)},e.without_kibana=function(a){return{_source:a._source,highlight:a.highlight}},e.set_refresh=function(a){e.refresh=a},e.close_edit=function(){e.refresh&&e.get_data(),e.refresh=!1}}]),f.filter("tableHighlight",function(){returnfunction(a){return!c.isUndefined(a)&&!c.isNull(a)&&a.toString().length>0?a.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r?\n/g,"<br/>").replace(/@start-highlight@/g,'<code class="highlight">').replace(/@end-highlight@/g,"</code>"):""}}),f.filter("tableTruncate",function(){returnfunction(a,b,d){return!c.isUndefined(a)&&!c.isNull(a)&&a.toString().length>0?a.length>b/d?a.substr(0,b/d)+"...":a:""}}),f.filter("tableFieldFormat",["fields",function(a){returnfunction(b,d,f,g){varh;returnc.isUndefined(a.mapping[f._index])||c.isUndefined(a.mapping[f._index][f._type])||(h=a.mapping[f._index][f._type][d].type,"date"!==h||!g.panel.normTimes)?b:e(b).format("YYYY-MM-DD HH:mm:ss")}}])});