wazuh-kibana-app/public/templates/test.html

31 lines
1.7 KiB
HTML

<div ng-controller="testController">
<button ng-click="AgentName = 'localCentos'">localCentos</button>
<button ng-click="AgentName = 'snaowPC'">localPC</button>
<kbn-searchbar></kbn-searchbar>
<md-card flex="100">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Top 5 signatures</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<kbn-vis vis-height="154px" vis-type="pie" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(field:rule.description,order:desc,orderBy:'1',size:5),schema:segment,type:terms)),listeners:(),params:(addLegend:!t,addTooltip:!t,isDonut:!t,shareYAxis:!t),title:'Top 5',type:pie))"
vis-filter="agent.name: {{AgentName}}">
</kbn-vis>
</md-card-content>
</md-card>
<md-card flex="100">
<md-card-title>
<md-card-title-text>
<span class="md-headline">Top 5 signatures</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<kbn-vis vis-height="154px" vis-type="pie" vis-index-pattern="wazuh-alerts-*" vis-a="(filters:!(),linked:!f,query:(query_string:(analyze_wildcard:!t,query:'*')),uiState:(),vis:(aggs:!((enabled:!t,id:'1',params:(),schema:metric,type:count),(enabled:!t,id:'2',params:(field:rule.description,order:desc,orderBy:'1',size:5),schema:segment,type:terms)),listeners:(),params:(addLegend:!t,addTooltip:!t,isDonut:!t,shareYAxis:!t),title:'Top 5',type:pie))"
vis-filter="agent.name: {{AgentName}}">
</kbn-vis>
</md-card-content>
</md-card>
</div>