Skip to content

Commit

Permalink
Update list of index-patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Jun 30, 2020
1 parent b90e6ee commit f13ccb8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const DATA_DATASETS_INDEX_PATTERNS = [
{ pattern: '*wp*', patternName: 'wordpress' }, // TODO: Too vague?
{ pattern: '*drupal*', patternName: 'drupal' },
{ pattern: '*joomla*', patternName: 'joomla' },
{ pattern: '*search*', patternName: 'search' },
{ pattern: '*search*', patternName: 'search' }, // TODO: Too vague?
{ pattern: '*wix*', patternName: 'wix' }, // TODO: Too vague?
{ pattern: '*sharepoint*', patternName: 'sharepoint' },
{ pattern: '*squarespace*', patternName: 'squarespace' },
Expand Down Expand Up @@ -67,6 +67,9 @@ export const DATA_DATASETS_INDEX_PATTERNS = [
// Security - Elastic
{ pattern: 'logstash-*', patternName: 'logstash', shipper: 'logstash' },
{ pattern: 'endgame-*', patternName: 'endgame', shipper: 'endgame' },
{ pattern: 'logs-endpoint.*', patternName: 'logs-endpoint', shipper: 'endpoint' }, // It should be caught by the `mappings` logic, but just in case
{ pattern: 'metrics-endpoint.*', patternName: 'metrics-endpoint', shipper: 'endpoint' }, // It should be caught by the `mappings` logic, but just in case
{ pattern: '.siem-signals-*', patternName: 'siem-signals' },
{ pattern: 'auditbeat-*', patternName: 'auditbeat', shipper: 'auditbeat' },
{ pattern: 'winlogbeat-*', patternName: 'winlogbeat', shipper: 'winlogbeat' },
{ pattern: 'packetbeat-*', patternName: 'packetbeat', shipper: 'packetbeat' },
Expand All @@ -78,7 +81,7 @@ export const DATA_DATASETS_INDEX_PATTERNS = [
{ pattern: '*aruba*', patternName: 'aruba' },
{ pattern: '*barracuda*', patternName: 'barracuda' },
{ pattern: '*bluecoat*', patternName: 'bluecoat' },
{ pattern: '*cef*', patternName: 'cef' }, // TODO: Too vague?
// { pattern: '*cef*', patternName: 'cef' }, // Disabled because it's too vague
{ pattern: '*checkpoint*', patternName: 'checkpoint' },
{ pattern: '*cisco*', patternName: 'cisco' },
{ pattern: '*citrix*', patternName: 'citrix' },
Expand All @@ -90,22 +93,29 @@ export const DATA_DATASETS_INDEX_PATTERNS = [
{ pattern: '*kaspersky*', patternName: 'kaspersky' },
{ pattern: '*mcafee*', patternName: 'mcafee' },
{ pattern: '*paloaltonetworks*', patternName: 'paloaltonetworks' },
{ pattern: '*pan*', patternName: 'paloaltonetworks' }, // TODO: Too vague?
{ pattern: '*rsa*', patternName: 'rsa' }, // TODO: Too vague?
{ pattern: '*snort*', patternName: 'snort' }, // TODO: Too vague?
{ pattern: 'pan-*', patternName: 'paloaltonetworks' },
{ pattern: 'pan_*', patternName: 'paloaltonetworks' },
{ pattern: 'pan.*', patternName: 'paloaltonetworks' },
{ pattern: 'rsa.*', patternName: 'rsa' },
{ pattern: 'rsa-*', patternName: 'rsa' },
{ pattern: 'rsa_*', patternName: 'rsa' },
{ pattern: 'snort-*', patternName: 'snort' },
{ pattern: 'logstash-snort*', patternName: 'snort' },
{ pattern: '*sonicwall*', patternName: 'sonicwall' },
{ pattern: '*sophos*', patternName: 'sophos' },
{ pattern: '*squid*', patternName: 'squid' }, // TODO: Too vague?
{ pattern: 'squid-*', patternName: 'squid' },
{ pattern: 'squid_*', patternName: 'squid' },
{ pattern: 'squid.*', patternName: 'squid' },
{ pattern: '*symantec*', patternName: 'symantec' },
{ pattern: '*tippingpoint*', patternName: 'tippingpoint' },
{ pattern: '*trendmicro*', patternName: 'trendmicro' },
{ pattern: '*tripwire*', patternName: 'tripwire' },
{ pattern: '*zscaler*', patternName: 'zscaler' },
{ pattern: '*zeek*', patternName: 'zeek' },
{ pattern: '*sigma_doc*', patternName: 'sigma_doc' },
{ pattern: '*bro*', patternName: 'bro' }, // TODO: Too vague?
// { pattern: '*bro*', patternName: 'bro' }, // Disabled because it's too vague
{ pattern: '*suricata*', patternName: 'suricata' },
{ pattern: '*fsf*', patternName: 'fsf' }, // TODO: Too vague?
// { pattern: '*fsf*', patternName: 'fsf' }, // Disabled because it's too vague
{ pattern: '*wazuh*', patternName: 'wazuh' },
] as const;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ describe('get_data_telemetry', () => {
{ name: 'filebeat-12314', docCount: 100, sizeInBytes: 10 },
{ name: 'metricbeat-1234', docCount: 100, sizeInBytes: 10, isECS: false },
{ name: '.app-search-1234', docCount: 0 },
{ name: 'logs-endpoint.1234', docCount: 0 }, // Matching pattern with a dot in the name
// New Indexing strategy: everything can be inferred from the constant_keyword values
{
name: 'logs-nginx.access-default-000001',
Expand Down Expand Up @@ -123,6 +124,12 @@ describe('get_data_telemetry', () => {
index_count: 1,
doc_count: 0,
},
{
pattern_name: 'logs-endpoint',
shipper: 'endpoint',
index_count: 1,
doc_count: 0,
},
{
dataset: { name: 'nginx.access', type: 'logs' },
shipper: 'filebeat',
Expand Down

0 comments on commit f13ccb8

Please sign in to comment.