Skip to content

Commit

Permalink
Update dashboards
Browse files Browse the repository at this point in the history
  • Loading branch information
pablotr9 committed Jun 5, 2019
1 parent 0a95ac5 commit d6b3e27
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 53 deletions.
4 changes: 4 additions & 0 deletions SplunkAppForWazuh/appserver/static/css/styles/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,10 @@ div.uil-ring-css {
color: black !important;
}

.md-tab{
font-weight: 100 !important;
}

.wazuhNavDiscover .euiTab ,
.wazuhNavDiscover .euiText {
font-size: 14px !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<div ng-show="!loadingVizz">
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='gdprTabs'>
<md-tabs md-selected="selectedPciIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedPciIndex" class="wz-md-tab" style="min-height: 183px;" md-border-bottom>
<md-tab ng-repeat="tab in gdprTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">GDPR Requirement: {{tab.title}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,45 +120,45 @@ define([
'gdprRequirementsVizz',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by rule.gdpr{}`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by rule.gdpr{} | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'gdprRequirementsVizz',
this.scope
),
new PieChart(
'groupsVizz',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | top limit=5 rule.groups{}`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | top limit=5 rule.groups{} | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'groupsVizz',
this.scope
),
new PieChart(
'top5GDPR',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | top limit=5 rule.gdpr{} `,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | top limit=5 rule.gdpr{} | rename count as "Count", rule.gdpr{} as "GDPR Requirements" `,
'top5GDPR',
this.scope
),
new PieChart(
'rulesVizz',
`${this.filters} sourcetype=wazuh | top limit=5 rule.description `,
`${this.filters} sourcetype=wazuh | top limit=5 rule.description | rename count as "Count", rule.gdpr{} as "GDPR Requirements" `,
'rulesVizz',
this.scope
),
new PieChart(
'agentsVizz',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by agent.name`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by agent.name | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'agentsVizz',
this.scope
),
new ColumnChart(
'requirementsByAgentVizz',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" agent.name=*| chart count(rule.gdpr{}) by rule.gdpr{},agent.name`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" agent.name=*| chart count(rule.gdpr{}) by rule.gdpr{},agent.name | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'requirementsByAgentVizz',
this.scope
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<!-- first row -->
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='hipaaTabs'>
<md-tabs md-selected="selectedHipaaIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedHipaaIndex" class="wz-md-tab" style="min-height:155px;" md-border-bottom>
<md-tab ng-repeat="tab in hipaaTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">HIPAA Requirement: {{tab.title}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,47 +91,47 @@ define([
'hipaaReqSearchVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by rule.hipaa{}`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by rule.hipaa{} | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'hipaaReqSearchVizz',
this.scope
),
new PieChart(
'groupsVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | top limit=5 rule.groups{}`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | top limit=5 rule.groups{} | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'groupsVizz',
this.scope
),
new PieChart(
'topRules',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | top limit=5 rule.description`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | top limit=5 rule.description | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'topRules',
this.scope
),
new PieChart(
'top5hipaa',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | top limit=5 rule.hipaa{}`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | top limit=5 rule.hipaa{} | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'top5hipaa',
this.scope
),
new PieChart(
'ruleLevelDistribution',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by rule.level`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by rule.level | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'ruleLevelDistribution',
this.scope
),
new ColumnChart(
'reqByAgentsVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" agent.name=*| chart count(rule.hipaa{}) by rule.hipaa{},agent.name`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" agent.name=*| chart count(rule.hipaa{}) by rule.hipaa{},agent.name | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'reqByAgentsVizz',
this.scope
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
<!-- first row -->
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='nistTabs'>
<md-tabs md-selected="selectedNistIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedNistIndex" class="wz-md-tab" style="min-height:173px;" md-border-bottom>
<md-tab ng-repeat="tab in nistTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">NIST 800-53 Requirement: {{tab.title}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,47 +90,47 @@ define([
'nistReqSearchVizz',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count by rule.nist_800_53{}`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count by rule.nist_800_53{} | rename count as "Count", rule.nist_800_53{} as "Nist 800-53 Requirement"`,
'nistReqSearchVizz',
this.scope
),
new PieChart(
'groupsVizz',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | top limit=5 rule.groups{}`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | top limit=5 rule.groups{} | rename count as "Count", rule.nist_800_53{} as "Nist 800-53 Requirement"`,
'groupsVizz',
this.scope
),
new PieChart(
'topRules',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | top limit=5 rule.description`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | top limit=5 rule.description | rename count as "Count", rule.nist_800_53{} as "Nist 800-53 Requirement"`,
'topRules',
this.scope
),
new PieChart(
'top5nist',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | top limit=5 rule.nist_800_53{}`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | top limit=5 rule.nist_800_53{} | rename count as "Count", rule.nist_800_53{} as "Nist 800-53 Requirement"`,
'top5nist',
this.scope
),
new PieChart(
'ruleLevelDistribution',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count by rule.level`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count by rule.level | rename count as "Count", rule.nist_800_53{} as "Nist 800-53 Requirement"`,
'ruleLevelDistribution',
this.scope
),
new ColumnChart(
'reqByAgentsVizz',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" agent.name=*| chart count(rule.nist_800_53{}) by rule.nist_800_53{},agent.name`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" agent.name=*| chart count(rule.nist_800_53{}) by rule.nist_800_53{},agent.name | rename count as "Count", rule.nist_800_53{} as "Nist 800-53 Requirement"`,
'reqByAgentsVizz',
this.scope
),
Expand All @@ -146,7 +146,7 @@ define([
'alertsSummaryTable',
`${
this.filters
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count sparkline by agent.name, rule.nist_800_53{}, rule.description | sort count DESC | rename agent.name as "Agent Name", rule.nist_800_53{} as Requirement, rule.description as "Rule description", count as Count`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count sparkline by agent.name, rule.nist_800_53{}, rule.description | sort count DESC | rename agent.name as "Agent Name", rule.nist_800_53{} as "Nist 800-53 Requirement", rule.description as "Rule description", count as Count`,
'alertsSummaryTableToken',
'$result$',
this.scope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<!-- first row -->
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='pciTabs'>
<md-tabs md-selected="selectedPciIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedPciIndex" class="wz-md-tab" style="min-height: 172px;" md-border-bottom>
<md-tab ng-repeat="tab in pciTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">PCI-DSS Requirement: {{tab.title}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,47 +103,47 @@ define([
'pciReqSearchVizz',
`${
this.filters
} sourcetype=wazuh rule.pci_dss{}="$pci$" | stats count by rule.pci_dss{}`,
} sourcetype=wazuh rule.pci_dss{}="$pci$" | stats count by rule.pci_dss{} | rename count as "Count", rule.pci_dss{} as "PCI DSS Requirements"`,
'pciReqSearchVizz',
this.scope
),
new PieChart(
'groupsVizz',
`${
this.filters
} sourcetype=wazuh rule.pci_dss{}="$pci$" | top limit=5 rule.groups{}`,
} sourcetype=wazuh rule.pci_dss{}="$pci$" | top limit=5 rule.groups{} | rename count as "Count", rule.pci_dss{} as "PCI DSS Requirements"`,
'groupsVizz',
this.scope
),
new PieChart(
'topRules',
`${
this.filters
} sourcetype=wazuh rule.pci_dss{}="$pci$" | top limit=5 rule.description`,
} sourcetype=wazuh rule.pci_dss{}="$pci$" | top limit=5 rule.description | rename count as "Count", rule.pci_dss{} as "PCI DSS Requirements"`,
'topRules',
this.scope
),
new PieChart(
'top5Pcidss',
`${
this.filters
} sourcetype=wazuh rule.pci_dss{}="$pci$" | top limit=5 rule.pci_dss{}`,
} sourcetype=wazuh rule.pci_dss{}="$pci$" | top limit=5 rule.pci_dss{} | rename count as "Count", rule.pci_dss{} as "PCI DSS Requirements"`,
'top5Pcidss',
this.scope
),
new PieChart(
'ruleLevelDistribution',
`${
this.filters
} sourcetype=wazuh rule.pci_dss{}="$pci$" | stats count by rule.level`,
} sourcetype=wazuh rule.pci_dss{}="$pci$" | stats count by rule.level | rename count as "Count", rule.pci_dss{} as "PCI DSS Requirements"`,
'ruleLevelDistribution',
this.scope
),
new ColumnChart(
'reqByAgentsVizz',
`${
this.filters
} sourcetype=wazuh rule.pci_dss{}="$pci$" agent.name=*| chart count(rule.pci_dss{}) by rule.pci_dss{},agent.name`,
} sourcetype=wazuh rule.pci_dss{}="$pci$" agent.name=*| chart count(rule.pci_dss{}) by rule.pci_dss{},agent.name | rename count as "Count", rule.pci_dss{} as "PCI DSS Requirements"`,
'reqByAgentsVizz',
this.scope
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<!-- first row -->
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='gdprTabs'>
<md-tabs md-selected="selectedGdprIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedGdprIndex" class="wz-md-tab" style="min-height: 183px;" md-border-bottom>
<md-tab ng-repeat="tab in gdprTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">GDPR Requirement: {{tab.title}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,31 +82,31 @@ define([
'gdprRequirements',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by rule.gdpr{}`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by rule.gdpr{} | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'gdprRequirements',
this.scope
),
new LinearChart(
'evoViz',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="*" | timechart count by rule.gdpr{}`,
} sourcetype=wazuh rule.gdpr{}="*" | timechart count by rule.gdpr{} | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'evoViz',
this.scope
),
new PieChart(
'agentsViz',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by agent.name`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" | stats count by agent.name | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'agentsViz',
this.scope
),
new ColumnChart(
'requirementsByAgents',
`${
this.filters
} sourcetype=wazuh rule.gdpr{}="$gdpr$" agent.name=*| chart count(rule.gdpr{}) by rule.gdpr{},agent.name`,
} sourcetype=wazuh rule.gdpr{}="$gdpr$" agent.name=*| chart count(rule.gdpr{}) by rule.gdpr{},agent.name | rename count as "Count", rule.gdpr{} as "GDPR Requirements"`,
'requirementsByAgents',
this.scope
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<!-- first row -->
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='hipaaTabs'>
<md-tabs md-selected="selectedHipaaIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedHipaaIndex" class="wz-md-tab" style="min-height:150px;" md-border-bottom>
<md-tab ng-repeat="tab in hipaaTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">HIPAA Requirement: {{tab.title}}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,31 +80,31 @@ define([
'hipaaReqVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by rule.hipaa{}`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by rule.hipaa{} | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'hipaaReqVizz',
this.scope
),
new LinearChart(
'evoVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="*" | timechart count by rule.hipaa{}`,
} sourcetype=wazuh rule.hipaa{}="*" | timechart count by rule.hipaa{} | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'evoVizz',
this.scope
),
new PieChart(
'agentsVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by agent.name`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count by agent.name | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'agentsVizz',
this.scope
),
new ColumnChart(
'requirementsByAgentVizz',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" agent.name=*| chart count(rule.hipaa{}) by rule.hipaa{},agent.name`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" agent.name=*| chart count(rule.hipaa{}) by rule.hipaa{},agent.name | rename count as "Count", rule.hipaa{} as "HIPAA Requirements"`,
'requirementsByAgentVizz',
this.scope
),
Expand All @@ -120,7 +120,7 @@ define([
'alertsSummaryTable',
`${
this.filters
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count sparkline by agent.name, rule.hipaa{}, rule.description | sort count DESC | rename agent.name as "Agent Name", rule.hipaa{} as Requirement, rule.description as "Rule description", count as Count`,
} sourcetype=wazuh rule.hipaa{}="$hipaa$" | stats count sparkline by agent.name, rule.hipaa{}, rule.description | sort count DESC | rename agent.name as "Agent Name", rule.hipaa{} as "HIPAA Requirements", rule.description as "Rule description", count as Count`,
'alertsSummaryTableToken',
'$result$',
this.scope,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<!-- first row -->
<div layout="row" layout-align="center stretch">
<md-card flex class="wz-md-card" ng-show='nistTabs'>
<md-tabs md-selected="selectedNistIndex" class="wz-md-tab" md-border-bottom>
<md-tabs md-selected="selectedNistIndex" class="wz-md-tab" style="min-height:165px;" md-border-bottom>
<md-tab ng-repeat="tab in nistTabs" label="{{tab.title}}">
<div class="md-padding">
<span class="wz-headline-title">NIST 800-53 Requirement: {{tab.title}}</span>
Expand Down
Loading

0 comments on commit d6b3e27

Please sign in to comment.