Skip to content

Commit

Permalink
Fix nist-800-53 visualizations
Browse files Browse the repository at this point in the history
  • Loading branch information
pablotr9 committed Jun 3, 2019
1 parent 675d073 commit 13f70f8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
</md-card>
<md-card flex="33" class="wz-md-card" ng-class="{'fullscreen': expandArray[2]}">
<md-card-content class="wazuh-column">
<span class="wz-headline-title">Top 5 NIST-800-53 requirements
<span class="wz-headline-title">Top 5 NIST 800-53 requirements
<span class="wz-text-link" style="float:right;" ng-click="expand(2,'top5nist)">
<wz-svg icon="expand"></wz-svg>
</span>
Expand All @@ -117,7 +117,7 @@
<div layout="row" layout-align="center stretch">
<md-card flex="70" class="wz-md-card" ng-class="{'fullscreen': expandArray[3]}">
<md-card-content class="wazuh-column">
<span class="wz-headline-title">NIST-800-53 Requirements
<span class="wz-headline-title">NIST 800-53 Requirements
<span class="wz-text-link" style="float:right;" ng-click="expand(3,'nistReqSearchVizz')">
<wz-svg icon="expand"></wz-svg>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ define([
'dropDownInput',
`${
this.filters
} sourcetype=wazuh rule.nist-800-53{}="*"| stats count by "rule.nist-800-53{}" | sort "rule.nist-800-53{}" ASC | fields - count`,
'rule.nist-800-53{}',
} sourcetype=wazuh rule.nist_800_53{}="*"| stats count by "rule.nist_800_53{}" | sort "rule.nist_800_53{}" ASC | fields - count`,
'rule.nist_800_53{}',
'$form.nist$',
'dropDownInput',
this.scope
Expand Down Expand Up @@ -110,63 +110,63 @@ 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{}`,
'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{}`,
'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`,
'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{}`,
'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`,
'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`,
'reqByAgentsVizz',
this.scope
),
new Table(
'alertsSummaryVizz',
`${
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 Requirement, rule.description as "Rule description", count as Count`,
'alertsSummaryVizz',
this.scope
),
new RawTableDataService(
'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 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 @@ -80,8 +80,8 @@ define([
'dropDownInput',
`${
this.filters
} sourcetype=wazuh rule.nist-800-53{}="*"| stats count by "rule.nist-800-53{}" | sort "rule.nist-800-53{}" ASC | fields - count`,
'rule.nist-800-53{}',
} sourcetype=wazuh rule.nist_800_53{}="*"| stats count by "rule.nist_800_53{}" | sort "rule.nist_800_53{}" ASC | fields - count`,
'rule.nist_800_53{}',
'$form.nist$',
'dropDownInput',
this.scope
Expand All @@ -98,47 +98,47 @@ define([
'nistReqVizz',
`${
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{}`,
'nistReqVizz',
this.scope
),
new LinearChart(
'evoVizz',
`${
this.filters
} sourcetype=wazuh rule.nist-800-53{}="*" | timechart count by rule.nist-800-53{}`,
} sourcetype=wazuh rule.nist_800_53{}="*" | timechart count by rule.nist_800_53{}`,
'evoVizz',
this.scope
),
new PieChart(
'agentsVizz',
`${
this.filters
} sourcetype=wazuh rule.nist-800-53{}="$nist$" | stats count by agent.name`,
} sourcetype=wazuh rule.nist_800_53{}="$nist$" | stats count by agent.name`,
'agentsVizz',
this.scope
),
new ColumnChart(
'requirementsByAgentVizz',
`${
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`,
'requirementsByAgentVizz',
this.scope
),
new Table(
'alertsSummaryViz',
`${
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 Requirement, rule.description as "Rule description", count as Count`,
'alertsSummaryViz',
this.scope
),
new RawTableDataService(
'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 Requirement, rule.description as "Rule description", count as Count`,
'alertsSummaryTableToken',
'$result$',
this.scope,
Expand Down

0 comments on commit 13f70f8

Please sign in to comment.