When a custom log type in OpenSearch Security Analytics is the right fix
A custom log type is the right fix when an internal application, appliance or SaaS source sends logs that no standard log type describes, so the prepackaged detection content never matches its events. Security Analytics supports user-defined custom log types for exactly this case: when data does not fit a standard type, you define the type yourself and attach detection to it. The question this page answers is how to do that well, and when a different path is the better choice. Before you start, confirm which log types your version of Security Analytics ships with, since a source that looks unusual may already be covered by a type you have not enabled.
The main alternative is forcing the source into a nearby standard log type, such as mapping an in-house authentication service onto a generic identity type. This can be quicker, and it reuses existing rules, but it has a cost: the standard rules assume field meanings the source does not share, so some detections will fire on noise and others will silently miss events. A custom type avoids that mismatch, but it means you own the rules, the field mappings and their upkeep, with no vendor content behind them. Decide per source. A source with a stable, well-understood schema and a few high-value detections may justify a custom type, while a source that only resembles a standard type may not.
Either way, a custom log type needs a named owner for the source's field meanings. The person who knows what user_id, action or result actually mean in that application should sign off on the mapping, and should be told when the application changes its output. Without that owner, field mappings drift, rules are written against the wrong values, and the detector keeps running while it no longer detects anything. Ask the team that operates the source to document its event types, sample events and the fields you intend to use before you write a single rule, and agree who approves changes to those fields.
Which approach fits your log source
Create a custom log type when the source is distinct, its events carry fields that no standard log type describes well, and the detections you need depend on those fields. Security Analytics supports user-defined custom log types for exactly this case, so the source keeps its own schema and its own rules. The cost sits in mapping: someone must define the field mappings, confirm them against real events, and keep them current when the vendor changes the log format.
- Mapping ownership: The team that owns the source usually owns the field list, so agree who maintains it before the first rule is written.
- Recurring upkeep: Every vendor schema change can break field names or types, which means the mapping needs a review step tied to upgrades of the source.
- Rule portability: Rules written against custom field names do not transfer to other log types without rewriting, so keep a record of which rules depend on which fields.
- Narrow reuse: Other teams cannot benefit from the mapping unless it is documented and shared.
Before you start, confirm with your own sample events that every field you plan to detect on is present and consistently typed.",
Reusing or extending a nearby standard log type fits when the source is close to an existing schema, such as an application that writes the same kind of authentication or access events as a supported product. You keep the standard field names and the Sigma rules already written for them, which lowers mapping work and helps rules carry over between sources. The risk is silent mismatch: a field may look equivalent but mean something slightly different, so a rule can fire on the wrong events or miss real ones.
- Lower mapping effort: Most of the schema is already defined, so the work concentrates on the fields that differ.
- Inherited rules: Existing detection content can run against the new source immediately, though it still needs testing.
- Semantic drift: Equivalent-looking fields can carry different values, so validate each mapped field against sample events rather than assuming equivalence.
- Limited control: Changes to the standard type's mapping may affect your source, so track which fields you have altered or added.
Check which fields your source populates that the standard type does not define, and decide now whether those gaps are acceptable for the detections you plan.
Normalizing events in the collection pipeline means transforming raw source events into a known schema before they reach OpenSearch. Logstash, Fluent Bit, OpenTelemetry Collector or a similar tool can rename fields, parse nested values and add consistent metadata, so the indexed data matches a standard log type without changing Security Analytics configuration. This fits when several sources share a common shape, or when the parsing logic is already maintained in your pipeline. The cost moves out of OpenSearch and into the pipeline, where parsers, tests and deployment must be managed.
- Pipeline ownership: The parsing logic lives outside the SIEM, so the team that runs collection must own its tests and releases.
- Central control: One transformation can serve several destinations, but a parser error affects all of them.
- Failure visibility: Dropped or malformed events can disappear quietly unless the pipeline reports parse failures.
- Rule portability: Normalized data lets standard rules apply to the source, which improves portability, but only if the normalization is faithful to the original meaning.
Confirm who will test parser changes and how parse failures are reported before committing to this route.
How to create a custom log type and test its detectors
This sequence takes a log source that has no standard Security Analytics log type from raw samples to a tested detector. Each step ends with a check, so the team knows whether the next step can safely begin.
Confirm the source fields and sample events
The detection engineer and the team that owns the source list the fields the source emits, the field names and types, how timestamps are written, and which event types matter for detection. They collect a set of real sample events covering normal activity and the behaviors they want to catch. Ask the source owner to confirm the log format version, since field names often change between releases. This step is done when the team has a written field inventory and a sample file that a second engineer has reviewed for sensitive data, which should be removed or masked before the sample is indexed anywhere shared.
Index a representative sample into a test index
The engineer loads the sample events into a dedicated test index, not the production log index, so that field mapping mistakes do not affect other detection content. The index should use the same field types the production pipeline will produce. Check the document count against the number of sample lines and spot-check several documents to confirm that timestamps parsed correctly and that nested or multi-value fields landed as expected. This step is done when every sample event is searchable in the test index with the fields the team inventoried.
Define the custom log type
In Security Analytics, the engineer creates a custom log type that names the source and points rules at the test index. The log type definition is the contract between the data and the rules, so the name should describe the source and version clearly. Confirm that the log type is recorded as user-defined and that its description states the source owner and the sample date. This step is done when the log type appears in the log type list and the team can see it bound to the test index.
Map source fields to the names rules will use
The engineer maps each source field to the field name that detection rules and correlation will reference, following the naming conventions already used by the rules the team plans to import. Mapping is where most custom log type problems start: a rule that refers to a field name the index does not contain will match nothing and report no error. Record every mapping in version control. This step is done when a query against each mapped field returns the values seen in the sample, and the mapping file is reviewed by someone who did not write it.
Import or write the detection rules
The engineer imports existing Sigma rules where they fit the source, or writes new rules for behaviors the source uniquely exposes. Each rule should reference only mapped field names and should be edited in a copy rather than the prepackaged original. Keep each rule's ID, author, severity and logsource fields accurate, because they drive filtering and later reporting. This step is done when every rule loads without a syntax or field error and the team has a list of which rules were imported unchanged and which were edited.
Create a detector on the test index
The engineer creates a detector that uses the custom log type, the test index and the selected rules. Start with the detector schedule and rule set limited to the sample scope so results are predictable, and do not attach notifications yet. Run the detector once and inspect the findings list to confirm that it produced results and that each finding references the expected rule and event. This step is done when the detector completes its run without errors and the findings table lists the events the team expected to match.
Verify findings against known-good and known-bad events
The team builds two labeled sets: known-bad events that each rule should match, and known-good events, including routine administrative activity, that no rule should match. They replay both sets into the test index and compare the findings with the labels. A missed known-bad event points to a mapping or logic gap, and an unexpected known-good match points to a rule that needs tuning before it reaches production. Record the results, the rule versions tested and the person who signed off. This step is done when every known-bad event is detected, known-good events produce no unexplained findings, and the results are stored with the rule and mapping versions so the test can be repeated after changes.
Field mapping mistakes that silently break detection
A custom log type is only as good as its field mappings. The mistakes below rarely raise an error: rules load, detectors run, and nothing alerts. Each card names the symptom and the check that exposes it before the detector is trusted.
Inconsistent field names across sources
Two sources that describe the same action often use different keys, such as src_ip in one feed and source.ip in another, or user versus username. A rule written against one name matches only the events that use it, so the detector looks healthy while missing the second source. Check each rule's field list against a sample event from every source, and confirm that each logical field maps to exactly one name in the log type.
Timestamp and type mismatches
A timestamp stored as a string, or in a different time zone or format than the index mapping expects, can be indexed without error yet fall outside the detector's time window. Numeric fields mapped as keywords break range comparisons, and a status code stored as text fails a numeric threshold. Run a query for a known event in each source and confirm the stored value, type and time zone match what the rule expects.
Nested fields flattened on ingest
Structured events such as JSON request bodies, authentication details or cloud API parameters are often flattened into dotted keys or joined into a single string during parsing. A rule that references a nested path then finds no value and never fires. Compare the document as indexed with the source event, and confirm that every nested field a rule uses exists at the path the mapping declares.
Fields that change between releases
An application update can rename a field, change its casing, or switch a value from an integer to a string. Detections built on the old format then go quiet after the release, with no error in the pipeline. Keep sample events from each supported application version in your test set, and rerun the detector tests whenever a release reaches production.
Missing fields treated as no match
When a field is absent from some events, a rule that depends on it evaluates to false rather than flagging a parsing gap. Coverage looks normal because the events are still ingested. Count how often each required field is empty over a sample period, and treat a sudden drop in a field's population as a finding in its own right.
How events flow from a custom source to a finding
The path starts at the source system, where log lines are shipped through a collection pipeline into OpenSearch indices. A custom log type defines which index receives the events and how its fields are mapped, so detectors can read them. Rules attached to a detector run against that index on a schedule and produce findings, which can raise alerts. Check the field mappings first: a rule that reads a field under a different name will silently match nothing. Access control and the mapping owner sit at the custom log type, where changes should be reviewed.
Event path from a custom source to detector findings and alerts.
Security and operational considerations for custom detection content
Custom log types and rules become production detection logic the moment a detector runs against live data. The cards below cover who can change that logic, how changes are controlled, who can read the source indices, and what the detectors and growing indices cost the cluster.
Who may create log types and rules
Defining a custom log type and writing detection rules are separate privileges, and both should sit with a named detection engineering group rather than every analyst with dashboard access. Map these actions to roles in the OpenSearch Security plugin, and confirm that analysts can view findings without being able to edit the mappings that decide what gets detected. Review the role list before go-live, since a broad admin role silently grants edit rights.
Security plugin docsChange control for mappings and rules
A field mapping change can break a rule without any error, because the rule simply stops matching. Keep log type definitions and rule files in version control, require a second reviewer for changes, and record which rule version was active during each alert window. Test every mapping change against sample events from the source before it reaches a production detector.
Access to source data indices
The indices that hold custom source logs often contain fields that the wider security team should not see, such as personal data or internal account identifiers. Restrict read access to those indices with index-level permissions, and consider document-level or field-level security where analysts need only part of each event. Confirm which service accounts write to these indices and whether they can also read them.
Detector schedules and cluster load
Each detector runs its rules on a schedule against the indices it covers, so a short interval over a high-volume custom source adds steady query load on the data nodes. Start with a conservative interval, measure query time and cluster health, and only shorten it when the detection need justifies the cost. Ask your team to confirm the interval for each detector in writing.
Index growth and retention
Custom sources frequently add fields and volume without warning, which increases shard count, storage use and index management work. Set retention and rollover rules for each source before onboarding it, and track disk usage against the thresholds your cluster operations plan defines. Decide who owns deleting old indices, since detection history depends on data you keep.
Cluster tuning docsQuestions teams ask before building custom log types
What drives the cost of building a custom log type in OpenSearch Security Analytics?
The main drivers are the number of log sources, how complex their fields are, and how many detection rules you need for each one. A single JSON application log with a few stable fields is a small job. A source with nested structures, many event types, or fields that change between versions takes longer to map and test. Each additional rule adds authoring, tuning and review time. Ask any provider to price these items separately: source analysis, field mapping, rule writing, detector testing, and handover. Confirm whether the quote covers rules for only one log type or for several, and whether later changes to the source are included.
What does the internal team need to provide for a custom log type project?
The work depends on people who know the source. You need a named owner for each log source who can explain what the events mean, which fields are reliable, and how the format changes after upgrades. You also need a test environment where sample events can be shipped into a non-production OpenSearch cluster without touching live detection. Access to representative sample logs, including normal and suspicious activity, is required for meaningful tests. Security analysts should review the rules because they will act on the alerts. Agree these responsibilities in the written scope before work starts.
Can our own security engineers build custom log types without outside help?
Yes, if your team already runs OpenSearch and understands its index mappings, Security Analytics log types and detector configuration. The first custom log type usually takes the longest because the team learns the workflow, the naming conventions and the testing steps. Teams that lack an OpenSearch administrator, a source owner or time to test often ask for help. A useful check is whether someone can map the fields, write a rule, run a detector against sample data and explain each result to a SOC analyst. If that is missing, a fixed-scope engagement can cover the gap, and the knowledge can be handed over in writing.
How long does testing a custom log type take?
Testing time depends mainly on source volume and how many event variations the source produces. A low-volume source with a few event types can be checked in a short cycle. A high-volume source needs time to confirm that ingestion keeps up, that the detector schedule finishes within its interval, and that the alert volume is manageable. Plan for at least one pass with sample data and one period of observation with live data before the rule goes into production. The exact duration should come from the written scope, not from a general figure.
What should we confirm in the OpenSearch documentation for our installed version?
Check the Security Analytics log types documentation for the exact version you run, because field names, built-in log types and detector options can change between releases. Confirm how custom log types are defined, which field mapping formats are accepted, and whether imported rules must follow a specific schema. Also check the OpenSearch release notes and the maintenance status of your version, so you know which patches are available. Record the version in your change ticket, since a rule that works on one minor release may need adjustment after an upgrade.
What are the biggest risks when mapping fields for a custom log type?
The most common problem is a mapping that looks correct on sample data but fails on real events. Typical causes are inconsistent field names across event types, timestamps in mixed time zones, missing fields that a rule depends on, and values that exceed the field type you chose. Another risk is that a source changes its format during an update and no one tells the security team. Mitigate this by testing with events from several time periods, documenting each field's meaning, and assigning a source owner who receives notice of format changes.
Does a custom log type change who can see the log data?
It can. A custom log type creates detection content, but the underlying events are still stored as OpenSearch documents, and access to them is controlled by the Security plugin roles, document-level security and field-level security. Before onboarding a source that contains personal or regulated data, decide which roles can read the raw events and which can view only alerts. Ask the implementer to show how access is restricted and how audit logs record who queried the data.
Limits to confirm in your own environment
Custom log types depend on limits that vary by OpenSearch version and by how your cluster is configured, and the public material we can cite does not settle all of them. Treat each item below as a check to run against your own cluster and release before you commit a detection design to production.
Supported field types
Confirm which field types a custom log type schema accepts, such as keyword, text, date, IP and numeric types, and how each one behaves in detector queries. Nested or multi-value fields in source logs need particular attention, because a flattened mapping can break rules that match on sub-fields. Check the field type list in the Security Analytics log type documentation for your exact version, then test one representative event per source before mapping the full schema.
Log types docsMaximum number of log types
Ask whether Security Analytics imposes a ceiling on custom log types per cluster, and whether that ceiling applies to detectors, rules or indices as well. Each log type creates its own index pattern and mappings, so a large number of sources adds cluster state and management overhead. Confirm the limit with the vendor documentation or in a test cluster before you plan one log type per source.
Imported rule compatibility
Confirm whether imported detection rules map cleanly onto a custom schema, since rules written against a standard log type may reference field names your custom mapping does not define. A rule that loads without error can still match nothing if its field names differ from your source. Run each imported rule against a known test event and record which fields it fails to resolve before you enable it.
Log types docsDetector run frequency limits
Check the shortest supported detector schedule and whether frequent runs over a high-volume custom index slow the cluster. Shorter intervals raise search load on the data nodes, and a detector that overruns its interval can queue behind itself. Set a schedule for one detector, measure its query duration against your event volume, then tune the rest of the set from that baseline.
Behavior across version upgrades
Confirm whether custom log types, mappings and detectors survive a minor or major upgrade unchanged, and whether the Security Analytics plugin needs its own migration step. The OpenSearch releases page sets out how long each version stays in maintenance, so plan upgrade windows around those dates. Before any upgrade, export your log type definitions and rules, then repeat your detector tests on the target version in a staging cluster.
OpenSearch releasesHow DeployOpen scopes and delivers custom log type work
DeployOpen plans, builds and documents custom log types in OpenSearch Security Analytics inside infrastructure you control. Each engagement starts with a written scope that names the log sources, field mappings, rules and detector tests, so your security and platform teams know what they receive before work begins.
How we scope
- Inventory each log source that lacks a standard log type and record its format, volume and owner.
- Agree in writing which custom log types, field mappings and detection rules are in the work.
- Confirm the OpenSearch version, deployment method and access model that the log type must run on.
- Define acceptance tests for each detector so the finish line is agreed before the build starts.
How we build
- Define the custom log type and map source fields to the schema that Security Analytics expects.
- Write or import detection rules for the new log type and review them against your detection standards.
- Test each detector against representative sample events, including benign and malicious examples.
- Keep field mappings, rules and configuration under version control so changes can be reviewed.
How we hand over
- Deliver a written record of each custom log type, its field mappings and the rules that use it.
- Document the detector test results, known gaps and the steps to add another source of the same kind.
- Walk your operations team through alert handling for the new detectors before the handover is closed.
- Provide the test scripts or sample events needed to rerun detector checks after future changes.
How we support
- Engagements are fixed-scope, and ongoing support is available as a retainer covering rule and mapping changes.
- Support can cover retesting detectors after OpenSearch upgrades or changes to the log source format.
- Ask in any quote which upgrade, retesting and rule tuning work is included and which is billed separately.
- Retainers can also cover periodic review of detector coverage as new log sources are added.

