Skip to main content
Version: 5.3

Asset Configuration Setup

Attention!

All asset configurations created before version 5.0 will use the old calculation algorithm.

More information about updating is described in the section Asset Configuration Migration

For the updated calculation algorithm to work correctly, you need to configure interaction with Postgres, described in detail here.

Description of Asset Configuration Settings

Configuration Management

To create a new or edit an existing configuration, you need to click the Create button or in the Actions section click the Edit item. After this, a form for creating (or editing) a configuration will open:

Configuration Setup Page

List of settings that make up the created configuration:

  • General Settings - general information about the asset
  • Fields — fields that constitute the main information about the asset, divided into basic and additional fields
  • Sources — list of sources used to create the asset database, as well as includes creating a rule for matching source fields and basic/additional fields
  • Binding — source fields where their relationship is configured
  • Prioritization — rule that determines the priority of extracting basic/additional fields from sources

When creating a configuration, by default, the updated calculation algorithm will be used.

To select the old calculation algorithm, the Use new algorithm switch is available, which needs to be switched to inactive position.

General Settings

The general settings tab consists of the following sections:

  • Basic - contains settings for configuration name and storage name
  • Schedule - contains setting for the frequency of running background tasks to collect assets.
    note

    The following schedule types are available for selection: Interval or Cron-expression.

    note

    Basic and Schedule are mandatory fields to fill.

  • Asset Settings - contains setting for asset name and asset lifetime
  • Display Settings - contains settings for visualizing asset configuration or the assets themselves in various interface parts (image and color)
  • Launch Parameters - contains settings used when forming the asset database (batch changes, index usage, replication usage, etc.)
note

The Asset Name parameter supports tokens based on basic and additional fields. Usage example: $hostname$ - $os$.

In the Asset Lifetime field, you can enter an integer from 1 with a time unit specification (s - seconds, m - minutes, h - hours, d - days). The value cannot be composite. Examples: 20h, 2d, 30s.

Attention!

The Display Settings section and the Enable data replication to index option are available only for configurations with the updated calculation algorithm!

The launch parameter options Batch Changes, Using Index, Merge with Empty, and Fast Search Only are available only for configurations with the old calculation algorithm!

Attention!

When enabling the data replication to index parameter, the asset database formed by the calculation module's background task will be copied to an index according to the structure of the old calculation algorithm.

If the index did not previously exist, it will be created automatically.

Fields

The fields tab consists of asset field settings. Each field has the following set of attributes:

  • Basic Field - flag determining whether the field is basic or additional

  • Field Name - technical name of the asset field that will participate in calculations (cannot be duplicated)

  • Display Name (optional) - field name displayed in interfaces

  • Coefficient

    note

    The basic field coefficient determines the degree of influence of the field on the similarity of two assets. It is used when an asset is obtained from source events and a decision needs to be made whether to create a new asset in the database or update an existing one. The decision is made by calculating the similarity coefficient of two assets.

    Similarity is determined through similarity coefficient k calculated by the formula k = c/(a+b-c), where:

    • c - number of matching basic fields of existing and new asset

    • a - number of basic fields of existing asset

    • b - number of basic fields of new asset.

    Assets are considered similar if k >= 0.5 when b <= 5 or if k >= 0.554 when b > 5. The basic field coefficient multiplies the presence of the field in sums a, b and c. If the coefficient is 0, the field is not counted in the sums. If the coefficient is 1, the field is counted in the sums once. If the coefficient is specified as n, the field will be counted in the sums n times.

note

To add a new field, use the Add Field button.

Example of added fields in the Fields tab:

Configuration Field Setup

Sources

To add a source, you need to click the Add Source button, after which a submenu will appear that needs to be expanded for its setup.

Source setup consists of the following items:

  • Source Name in Assets — source name

  • Index — where necessary information is stored

    Attention!

    The number of configuration fields may exceed the limit of calculated fields for the index. If the number of calculated fields of the index is less than the number of asset configuration fields, you need to increase the max_script_fields parameter for the index.

    This can be done with the following command:

    PUT <index>/_settings
    {
    "index" : {
    "max_script_fields" : <value>
    }
    }
  • Filter — expression by which filtering will be performed (in the format: <field>="value" AND/OR another expression)

  • Time Interval — time interval for which data is selected from the source to limit their volume

    note

    The Time Interval field specifies the filter interval magnitude in the form of interval or pattern by the @timestamp field (by default). The interval can be set globally for all sources in the configuration or individually for each source.

    The interval magnitude is specified as a positive number of time units, such as 90d (90 days), 24h (24 hours), 15m (15 minutes). The following time units are supported: m - minute, h - hour, d - day, w - week, M - month, y - year. More information about time units can be found in OpenSearch documentation.

    If the time interval is specified in minutes, the right boundary of the filter corresponds to the current moment (now), otherwise the right boundary equals the beginning of the previous hour (now-1h/h). The left boundary is calculated as the difference between the right boundary and the time interval.

    All source documents whose @timestamp is greater than or equal to the left boundary and less than or equal to the right boundary of the filter are included.

  • Auto-detection of Aggregated Fields - when enabled, aggregated type fields will be used (default: enabled)

  • Field Mapping Rules — mapping by which source fields and fields specified in Basic Fields and Additional Fields parameters are matched

note

To add mapping, use the Add Field button.

Example of a configured source in the Sources tab:

Configuration Source Setup

Binding

To fill in information about key fields, you need to click the Add button, after which a setup line will appear.

Key field setup consists of the following items:

  • Sources for Binding — which sources need to be bound, taken from the Sources tab
  • Binding Fields — selection of fields specified in Basic Fields and Additional Fields parameters

Example of configuration binding setup:

Configuration Binding Setup

Prioritization

To fill in information about prioritization, you need to click the Add Priority button, after which a submenu will appear that needs to be expanded for its setup.

Priority setup consists of the following items:

  • Field — by which field priority is determined
  • Field Extraction Order — extracting field from source according to given priority

To add a prioritization rule, click the Add Source button.

note

Priority Level indicates the sequential number of field extraction from the source. The field value is primarily extracted from the source with the lowest numerical priority level value (highest priority). When setting identical priorities, the field in the asset will be represented as an array.

Example of configured prioritization:

Configuration Binding Setup