Threshold / Event Counts on Detection Rules

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue: I’m very new to opensearch and am trying to figure out the best way to create Detection rules for a SIEM type environment. I have not figured out how to successfully configure a detection rule that looks for a specific threshold in the condition.

Here is a test rule that errors on creation.

id: 0000000000000000000

logsource:

product: windows

title: Threshold Test

description: Testing Sigma rule threshold and correlation syntax

tags: []

falsepositives: []

level: informational

status: test

references: []

author: John Doe

detection:

condition: selection | count(*) by dst_endpoint.hostname > 5

selection:

EventID|all:

  - '4625'

This rule errors with the following.

Failed to update rule:

[security_analytics_exception] Validation Failed: 1: index_name is missing;

I’ve tried switching out the field mapping in the condition (dst_endpoint.hostname) with a few different fields, but have not come up with anything that will successfully save.

Does anyone have any advice or documentation that shows how to correctly configure threshold based Signma rules in OpenSearch?

Configuration:

Relevant Logs or Screenshots:

Hi @BradB
Welcome to the OpenSearch community!

Which versions of OpenSearch and OpenSearch Dashboards are you using? Are you creating the detection rule through the Dashboards UI or the REST API?

For this you need your data source to have the a backing indice that holds that mapped key:value.

You can try to blanket with an index pattern but if older indices exist without the correct field, you will return another error.

You can also create an alias.

Query for a .ds that has dst_endpoint.hostname and use that as the data source

Hello @Yanlin , I’m using OpenSearch Dashboards, and I believe my version is 7.10.2

Hi @BradB ,

Thanks for the update!

I’ve tested a similar Sigma aggregation rule in a local test environment on OpenSearch 3.9.0 and was able to create and update it successfully without encountering the reported error.

The 7.10.2 version you mentioned may be an Elasticsearch compatibility version rather than your actual OpenSearch version.

Could you please run the following command in OpenSearch Dashboards Dev Tools and share the output?

GET /_nodes?filter_path=nodes.*.name,nodes.*.version

Thanks!

Thanks for the help @Yanlin . The result was “version”: “3.5.0”

1 Like

Hi @BradB,

I did some more testing on OpenSearch 3.5.0 and wanted to share an update.

I was able to create and update a Sigma rule using the same aggregation expression:

detection:
  selection:
    EventID: 4625
  condition: selection | count(*) by dst_endpoint.hostname > 5

I tested this both as a standalone rule and with a detector, and it worked in both cases. So the Sigma aggregation syntax itself appears to be valid.

Regarding the index_name is missing error, I managed to reproduce the exact error by calling the Security Analytics mappings API without an index name, but couldn’t reproduce it through normal rule creation or update API calls.This suggests the issue may be related to how the index name is handled when saving the rule, rather than the aggregation expression itself.

Could you check your browser’s Developer Tools → Network tab when saving the rule and share the failed request details (URL, payload, and response)? Please remove any sensitive information before sharing.

Thanks!

Thank you for being so helpful!

Here is that info with redactions.

Header

mode-yaml.js:1 Uncaught SyntaxError: Unexpected token ‘<’ (at mode-yaml.js:1:1)

PendingScript

i.28849.ace.define.t.loadScript

@

osd-ui-shared-deps.js:1

i.28849.ace.define.t.loadModule

@

osd-ui-shared-deps.js:1

i.28849.ace.define.setMode

@

osd-ui-shared-deps.js:1

i.71704.t.default.t.componentDidMount

@

osd-ui-shared-deps.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

aX

@

osd-ui-shared-deps.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

rn

@

osd-ui-shared-deps.js:1

aV

@

osd-ui-shared-deps.js:1

ax

@

osd-ui-shared-deps.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

rn

@

osd-ui-shared-deps.js:1

ro

@

osd-ui-shared-deps.js:1

rr

@

osd-ui-shared-deps.js:1

U

@

osd-ui-shared-deps.js:1

tH

@

osd-ui-shared-deps.js:1

securityAnalyticsDashboards.plugin.js:1 Failed to update rule: [security_analytics_exception] Validation Failed: 1: index_name is missing;

errorNotificationToast

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

asyncGeneratorStep

@

securityAnalyticsDashboards.plugin.js:1

_next

@

securityAnalyticsDashboards.plugin.js:1

Promise.then

asyncGeneratorStep

@

securityAnalyticsDashboards.plugin.js:1

_next

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.chunk.2.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

asyncGeneratorStep

@

securityAnalyticsDashboards.plugin.js:1

_next

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

onSubmit

@

securityAnalyticsDashboards.chunk.2.js:1

onSubmit

@

securityAnalyticsDashboards.chunk.2.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

Promise.then

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

(anonymous)

@

securityAnalyticsDashboards.plugin.js:1

onClick

@

securityAnalyticsDashboards.chunk.2.js:1

f

@

osd-ui-shared-deps.js:1

M

@

osd-ui-shared-deps.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

E

@

osd-ui-shared-deps.js:1

tn

@

osd-ui-shared-deps.js:1

te

@

osd-ui-shared-deps.js:1

ti

@

osd-ui-shared-deps.js:1

tu

@

osd-ui-shared-deps.js:1

Y

@

osd-ui-shared-deps.js:1

G

@

osd-ui-shared-deps.js:1

tX

@

osd-ui-shared-deps.js:1

tV

@

osd-ui-shared-deps.js:1

(anonymous)

@

osd-ui-shared-deps.js:1

rn

@

osd-ui-shared-deps.js:1

U

@

osd-ui-shared-deps.js:1

tH

@

osd-ui-shared-deps.js:1

Payload

  1. {id: “25b9c01c-350d-4b95-bed1-836d04a4f324”, category: “windows”, title: " Threshold Test",…}
    1. author: “”
    2. category: “windows”
    3. description: “Testing Sigma rule threshold and correlation syntax”
    4. detection: “condition: selection | count(*) by dst_endpoint.ip > 5\nselection:\n EventID:\n - 4625\n”
    5. false_positives: []
    6. id: “”
    7. level: “informational”
    8. log_source: {}
    9. references: []
    10. status: “test”
    11. tags: []
    12. title: “Threshold Test”

Preview

  1. ok: false, error: “[security_analytics_exception] Validation Failed: 1: index_name is missing;”}
    1. error: “[security_analytics_exception] Validation Failed: 1: index_name is missing;”
    2. ok: false

Repsponse

"ok": false,

"error": "\[security_analytics_exception\] Validation Failed: 1: index_name is missing;"

}

Request URL

https://opensearch.x.com/_dashboards/_plugins/_security_analytics/rules/1pg4aqEBJ2qvRlHBljNB?category=windows&dataSourceId=

Request method

PUT

Status code

200 OK

Remote address

0.0.0.0:443

Referrer policy

strict-origin-when-cross-origin

Request Header.

:authority

opensearch.x.com

:method

PUT

:path

/_dashboards/_plugins/_security_analytics/rules/1pg4aqEBJ2qvRlHBljNB?category=windows&dataSourceId=

:scheme

https

accept

*/*

accept-encoding

gzip, deflate, br, zstd

accept-language

en-US,en;q=0.9

content-length

412

content-type

application/json

cookie

security_authentication=

origin

https://opensearch.

osd-version

3.5.0

osd-xsrf

osd-fetch

priority

u=1, i

referer

https://opensearch./_dashboards/app/opensearch_security_analytics_dashboards

sec-ch-ua

"

sec-ch-ua-mobile

?0

sec-ch-ua-platform

“Windows”

sec-fetch-dest

empty

sec-fetch-mode

cors

sec-fetch-site

same-origin

user-agent

Response header

access-control-allow-origin

*

cache-control

private, no-cache, no-store, must-revalidate

content-encoding

gzip

content-length

117

content-type

application/json; charset=utf-8

date

Fri, 30 Oct 2026 16:10:20 GMT

osd-name

osd

server

set-cookie

security_authentication=; HttpOnly; Path=/_dashboards

strict-transport-security

max-age=31536000

x-amzn-requestid

Hello @BradB ,

Thanks for sharing the request details!

I compared your request with a successful update in my local OpenSearch 3.5.0 lab. The empty dataSourceId and log_source values were also present in my successful request, so they don’t seem to explain the error on their own.

I was able to create and update the aggregation rule successfully, both as a standalone rule and with a detector.

To investigate further, could you check two things?

  1. Is the rule linked to a detector? If so, could you share its configuration using:
GET /_plugins/_security_analytics/detectors/<detector_id>
  1. Could you also share the OpenSearch logs from when this error happens?

For reference, these are the steps I tested successfully:

  1. First, I created an index with @timestamp as a date, and EventID and dst_endpoint.hostname as keyword fields.
  2. I then added a write alias for the index.
  3. Using the Visual Editor, I created a basic Microsoft Windows rule with EventID|all: 4625 and condition: selection.
  4. Next, I configured a detector using the alias and associated the rule with it. I mapped winlog.event_id to EventID and timestamp to @timestamp.
  5. Finally, I opened the associated rule in the YAML Editor and changed the condition to:
condition: selection | count(*) by dst_endpoint.hostname > 5

The rule was updated successfully.

The final Sigma rule in my test:

id: FOghnaEBX3Ke0j0KbqP9
logsource:
  product: windows
title: Threshold Retest
description: Retest aggregation rule
tags: []
falsepositives: []
level: informational
status: test
references: []
author: Yanlin
detection:
  condition: selection | count(*) by dst_endpoint.hostname > 5
  selection:
    EventID|all:
      - '4625'

Please use a unique UUID for your own rule and remove any sensitive information before sharing the logs or detector configuration.

Thanks!

@Yanlin ,

Here is the cleaned Detector configuration

{

  "_id": "000000000",

  "_version": 5,

  "detector": {

    "name": "Test",

    "detector_type": "windows",

    "enabled": true,

    "schedule": {

      "period": {

        "interval": 1,

        "unit": "MINUTES"

      }

    },

    "inputs": [

      {

        "detector_input": {

          "description": "Testing rules and configuration.",

          "indices": [

            "windows-snare-procern-financialdebtrecovery"

          ],

          "custom_rules": [

            {

              "id": ""

            }

          ],

          "pre_packaged_rules": [

            {

              "id": ""

            },

            {

              "id": ""

            },

            {

              "id": ""

            },

            {

              "id": ""

            },

            {

              "id": ""

            },

            {

              "id": ""

            }

          ]

        }

      }

    ],

    "last_update_time": "2026-10-23T19:30:52.057Z",

    "enabled_time": "2026-10-23T17:16:27.985Z",

    "threat_intel_enabled": false,

    "triggers": [

      {

        "id": "",

        "name": "",

        "severity": "1",

        "types": [

          "windows"

        ],

        "ids": [

          ""

        ],

        "sev_levels": [],

        "tags": [],

        "actions": [

          {

            "id": "",

            "name": "Triggered alert condition:  {{ctx.trigger.name}} - Severity: {{ctx.trigger.severity}} - Threat detector: {{ctx.detector.name}}",

            "destination_id": "",

            "message_template": {

              "source": """- Triggered alert condition: {{ctx.trigger.name}}

 - Severity: {{ctx.trigger.severity}}

 - Threat detector: {{ctx.detector.name}}

 - Description: {{ctx.detector.description}}

 - Detector data sources: {{ctx.detector.datasources}}""",

              "lang": "mustache"

            },

            "throttle_enabled": false,

            "subject_template": {

              "source": "Triggered alert condition:  {{ctx.trigger.name}} - Severity: {{ctx.trigger.severity}} - Threat detector: {{ctx.detector.name}}",

              "lang": "mustache"

            },

            "throttle": {

              "value": 10,

              "unit": "MINUTES"

            }

          }

        ],

        "detection_types": [

          "rules"

        ]

      }

    ]

  }

}

I’m getting mixed results when trying to confirm aliases. This is a prebuilt data stream template.

When I run the following command in DEV Tools here are the results I get.

GET /_plugins/_security_analytics/mappings/view

{

“index_name”: “windows-snare-0000000000”,

“rule_topic”: “windows”

}

{

  "properties": {

    "winlog.event_data.SubjectUserSid": {

      "path": "actor.user.uid",

      "type": "alias"

    },

    "winlog.event_data.AuthenticationPackageName": {

      "path": "auth_protocol",

      "type": "alias"

    },

    "winlog.event_data.Workstation": {

      "path": "src_endpoint.name",

      "type": "alias"

    },

    "winlog.event_data.Status": {

      "path": "status",

      "type": "alias"

    },

    "winlog.event_data.LogonType": {

      "path": "logon_type_id",

      "type": "alias"

    },

    "source.port": {

      "path": "src_endpoint.port",

      "type": "alias"

    },

    "winlog.event_data.SubjectUserName": {

      "path": "actor.user.name",

      "type": "alias"

    },

    "winlog.event_data.Message": {

      "path": "message",

      "type": "alias"

    },

    "winlog.event_data.SubjectDomainName": {

      "path": "actor.user.domain",

      "type": "alias"

    },

    "winlog.event_data.ProcessId": {

      "path": "actor.process.pid",

      "type": "alias"

    },

    "windows.message": {

      "path": "message",

      "type": "alias"

    }

  },

  "unmapped_index_fields": [

    "vendor_attributes",

    "user.uid",

    "user.type_id",

    "user.type",

    "user.name",

    "user.domain",

    "unmapped",

    "type_uid",

    "type_name",

    "time",

    "status_id",

    "status_detail",

    "status_code",

    "src_endpoint.type_id",

    "src_endpoint.type",

    "src_endpoint.ip",

    "src_endpoint.hostname",

    "share",

    "severity_id",

    "severity",

    "session.uuid",

    "session.uid",

    "service.name",

    "resources.uid",

    "resources.type",

    "resources.region",

    "resources.name",

    "resources.ip",

    "resources.hostname",

    "resources.data",

    "raw_data",

    "process.uid",

    "process.name",

    "process.integrity",

    "process.file.type_id",

    "process.file.type",

    "process.file.path",

    "process.file.name",

    "privileges",

    "metadata.version",

    "metadata.uid",

    "metadata.profiles",

    "metadata.product.vendor_name",

    "metadata.product.name",

    "metadata.log_provider",

    "metadata.log_name",

    "metadata.event_code",

    "logon_type",

    "job.name",

    "job.file.type_id",

    "job.file.type",

    "job.file.name",

    "is_remote",

    "group.uid",

    "group.type",

    "group.name",

    "group.domain",

    "finding_info.title",

    "file.type_id",

    "file.type",

    "file.path",

    "file.name",

    "extensions.version",

    "extensions.uid",

    "extensions.name",

    "exit_code",

    "entity.type",

    "entity.name",

    "enrichments.value",

    "enrichments.type",

    "enrichments.src_url",

    "enrichments.short_desc",

    "enrichments.provider",

    "enrichments.name",

    "enrichments.desc",

    "enrichments.data",

    "enrichments.created_time",

    "dst_endpoint.type_id",

    "dst_endpoint.type",

    "dst_endpoint.port",

    "dst_endpoint.ip",

    "dst_endpoint.hostname",

    "device.type_id",

    "device.type",

    "device.os.type_id",

    "device.os.type",

    "device.os.name",

    "device.hostname",

    "connection_info.protocol_num",

    "connection_info.protocol_name",

    "connection_info.direction_id",

    "connection_info.direction",

    "class_uid",

    "class_name",

    "category_uid",

    "category_name",

    "auth_protocol_id",

    "actor.user.type_id",

    "actor.user.type",

    "actor.session.uid",

    "actor.process.name",

    "actor.process.file.type_id",

    "actor.process.file.type",

    "actor.process.file.path",

    "actor.process.file.name",

    "activity_name",

    "activity_id",

    "access_mask",

    "__ingest_timestamp",

    "__ingest_file_path",

    "__ingest_file_name",

    "@timestamp"

  ],

  "unmapped_field_aliases": [

    "winlog.event_data.ScriptBlockLogging",

    "winlog.event_data.SidHistory",

    "winlog.event_data.Properties",

    "winlog.event_data.LocalName",

    "host.hostname",

    "winlog.event_data.ServiceType",

    "winlog.event_data.TicketEncryptionType",

    "winlog.event_data.TicketOptions",

    "winlog.event_data.payload",

    "winlog.event_data.ErrorCode",

    "winlog.event_data.AttributeLDAPDisplayName",

    "winlog.event_data.Accesses",

    "winlog.event_data.Company",

    "winlog.event_data.Contents",

    "winlog.event_data.AccessMask",

    "hash.sha1",

    "winlog.event_data.TargetServerName",

    "winlog.event_data.ServiceStartType",

    "winlog.event_data.Application",

    "winlog.event_data.FilterOrigin",

    "winlog.event_data.TargetUserSid",

    "winlog.event_data.HostApplication",

    "winlog.event_data.OriginalName",

    "winlog.event_data.CallTrace",

    "winlog.event_data.State",

    "winlog.event_data.Description",

    "winlog.event_data.RelativeTargetName",

    "winlog.event_data.PrivilegeList",

    "winlog.event_data.Data",

    "winlog.event_data.CallerProcessName",

    "winlog.event_data.SubjectLogonId",

    "winlog.event_data.Signature",

    "winlog.event_data.TargetSid",

    "winlog.event_data.TargetLogonId",

    "winlog.event_data.NewUacValue",

    "hash.md5",

    "timestamp",

    "winlog.event_data.ValidatedPolicy",

    "winlog.event_data.TargetObject",

    "winlog.event_data.LogonProcessName",

    "winlog.event_data.Image",

    "winlog.event_data.NewTemplateContent",

    "winlog.event_data.TargetPort",

    "winlog.channel",

    "winlog.event_data.ImagePath",

    "winlog.event_data.AppName",

    "winlog.event_data.ObjectServer",

    "winlog.event_data.SearchFilter",

    "winlog.event_data.ParentProcessId",

    "winlog.event_data.LogonId",

    "winlog.event_data.LayerRTID",

    "winlog.computer_name",

    "winlog.event_data.DeviceDescription",

    "winlog.keywords",

    "winlog.event_data.FailureCode",

    "winlog.event_data.Protocol",

    "winlog.event_data.ImageName",

    "winlog.event_data.OldUacValue",

    "winlog.event_data.TargetUserName",

    "winlog.event_data.Initiated",

    "winlog.event_data.CertThumbprint",

    "winlog.event_data.Imphash",

    "winlog.event_data.OldTargetUserName",

    "winlog.event_data.param1",

    "winlog.event_data.NewTargetUserName",

    "winlog.event_data.param2",

    "winlog.event_data.param3",

    "winlog.event_data.Level",

    "winlog.event_data.ImageFileName",

    "winlog.event_data.DestinationIsIpv6",

    "winlog.event_data.ServiceName",

    "winlog.event_data.ParentUser",

    "winlog.event_data.QueryResults",

    "winlog.event_data.ClientProcessId",

    "winlog.event_data.SamAccountName",

    "winlog.event_data.SourceImage",

    "winlog.event_data.HostVersion",

    "winlog.event_data.TargetParentProcessId",

    "winlog.event_data.ObjectClass",

    "winlog.task",

    "winlog.event_data.PackagePath",

    "winlog.event_data.Address",

    "winlog.event_data.AttributeValue",

    "winlog.event_data.Path",

    "winlog.event_data.PasswordLastSet",

    "winlog.event_data.StartModule",

    "winlog.event_data.ProcessName",

    "winlog.event_data.QueryStatus",

    "winlog.event_data.IpAddress",

    "winlog.event_data.FileName",

    "winlog.event_data.PossibleCause",

    "winlog.event_data.ParentImage",

    "winlog.event_data.KeyLength",

    "winlog.event_data.ShareName",

    "winlog.event_data.DeviceName",

    "winlog.event_data.FileNameBuffer",

    "source.ip",

    "winlog.event_data.SignatureStatus",

    "winlog.event_data.OriginalFileName",

    "winlog.event_data.SourceName",

    "winlog.event_data.EngineVersion",

    "winlog.event_data.AuditSourceName",

    "winlog.event_data.SourceCommandLine",

    "winlog.event_data.TaskContentNew",

    "winlog.event_data.FileVersion",

    "winlog.event_data.Value",

    "winlog.event_data.NewValue",

    "winlog.event_data.Caption",

    "destination.port",

    "winlog.event_data.StartFunction",

    "winlog.event_data.ExceptionCode",

    "winlog.event_data.ApplicationPath",

    "winlog.event_data.QueryName",

    "winlog.event_data.SourceHostname",

    "winlog.event_data.ScriptBlockText",

    "winlog.event_data.ImpersonationLevel",

    "winlog.event_data.ProcessPath",

    "winlog.event_data.ObjectType",

    "winlog.event_data.GrantedAccess",

    "winlog.event_data.Source_Name",

    "winlog.event_data.ProcessNameBuffer",

    "winlog.event_data.DestinationHostname",

    "winlog.event_data.Name",

    "winlog.user.name",

    "destination.ip",

    "hash.sha256",

    "winlog.event_data.ObjectValueName",

    "winlog.event_data.EventType",

    "winlog.event_data.SourceFilename",

    "winlog.event_data.RemoteName",

    "winlog.event_data.RequestedPolicy",

    "winlog.event_data.process",

    "winlog.event_data.Query",

    "winlog.provider_name",

    "winlog.event_data.TargetParentImage",

    "winlog.event_data.PreviousCreationUtcTime",

    "winlog.event_data.Signed",

    "winlog.event_data.DestAddress",

    "winlog.event_data.ServicePrincipalNames",

    "winlog.event_data.Device",

    "winlog.event_data.AllowedToDelegateTo",

    "host.name",

    "winlog.event_data.PipeName",

    "winlog.event_data.Detail",

    "winlog.event_data.TemplateContent",

    "winlog.event_data.AuditPolicyChanges",

    "winlog.event_data.ContextInfo",

    "ParentProcessName",

    "winlog.event_data.NewName",

    "winlog.event_data.AppID",

    "winlog.event_data.SidList",

    "winlog.event_data.TargetFilename",

    "NewProcessName",

    "winlog.event_data.TaskContent",

    "winlog.event_data.Action",

    "winlog.event_data.ClassName",

    "winlog.computerObject.name",

    "winlog.event_data.RemoteAddress",

    "winlog.event_data.Destination",

    "winlog.event_data.StartAddress",

    "winlog.event_data.CreationUtcTime",

    "winlog.event_data.TargetImage",

    "winlog.event_data.Commandline",

    "winlog.event_data.TargetOutboundUserName",

    "winlog.event_data.Payload",

    "winlog.user.type",

    "winlog.event_data.AccessList",

    "winlog.event_data.subjectName",

    "winlog.event_data.Origin",

    "winlog.event_data.OldValue",

    "winlog.event_data.Hashes",

    "winlog.event_data.Hash",

    "winlog.event_data.PackageFullName",

    "winlog.event_data.ModifyingApplication",

    "winlog.event_data.IntegrityLevel",

    "winlog.event_data.HiveName",

    "winlog.event_id",

    "winlog.event_data.ImageLoaded",

    "winlog.event_data.ServiceFileName",

    "winlog.event_data.SourceParentImage",

    "winlog.event_data.QNAME",

    "process.command_line",

    "winlog.event_data.CurrentDirectory",

    "winlog.event_data.Product",

    "winlog.event_data.ParentCommandLine"

  ],

  "threat_intel_field_aliases": [

    {

      "ioc": "ip",

      "fields": [

        "destination.ip",

        "source.ip"

      ]

    }

  ]

}

 

So from there, it doesn’t look like a lot of those fields are mapped.

But when I open the “Backing Indexes” from inside that Data Stream, I do see the mappings.

And if I run the mappings command for that data stream, I get the following.

GET /_plugins/_security_analytics/mappings?index_name=windows-snare-

(ignore formatting)

{
"windows-snare-detectorname": {
"mappings": {
"properties": {
"winlog": {
"properties": {
"event_id": {
"type": "alias",
"path": "metadata.event_code"
},
"event_data": {
"properties": {
"TargetUserName": {
"type": "alias",
"path": "user.name"
},
"Status": {
"type": "alias",
"path": "status"
},
"LogonType": {
"type": "alias",
"path": "logon_type_id"
},
"IpAddress": {
"type": "alias",
"path": "src_endpoint.ip"
}
}
}
}
},
"timestamp": {
"type": "alias",
"path": "@timestamp"
},
"source": {
"properties": {
"ip": {
"type": "alias",
"path": "src_endpoint.ip"
}
}
},
"host": {
"properties": {
"hostname": {
"type": "alias",
"path": "dst_endpoint.hostname"
}
}
},
"destination": {
"properties": {
"ip": {
"type": "alias",
"path": "dst_endpoint.ip"
}
}
}
}
}
}
}


I’ve tried reconfiguring the rule with different mappings that exist in all of these, and I still receive the same error.

Here is a doc that also helps understand the naming structure of the Windows log type

If I leave the Condition at “selection”, it works fine with observing the correct EventID, so I’m confident that mapping is working.

But I’ve tried the following for the aggregation

dst_endpoint.hostname

winlog.event_data.IpAddress

IpAddress

SourceAddress

source.ip

src_endpoint.ip

and every one has ended with the same error.

I unfortunately can’t get the OpenSearch Error logs at this time, because that is hosted by a partner.

I will reach out to them and see if they can get me a copy of the error logs.