Skip to main content
Skip table of contents

OC Admin Mapping Editor

Once Collectors and Pipelines have been setup in OC Admin, field mappings can be configured from the Pipelines List.

Mapping Actions

To view mapping actions, from the main page:

  1. Click Pipelines in the menu bar.
  2. Click the Open button next to the pipeline to be configured.
  3. In the Mapping section, click the three-dot menu at the top-right.
    T
    he following actions are available:

    ActionDescription
    Edit MappingRefer to the Add and Edit Fields Mapping section for more information.
    Download Mapping as JQ PipelineA file is downloaded containing the fields mapping.
    Share and Import Mapping

    Import a new OC Admin mapping file, or share one to the Marketplace.

    Refer to the Share and Import Fields Mapping section for more information.

    Delete MappingRemove the mapping from OC Admin. A prompt will confirm this action.

Add and Edit Fields Mapping

To add a new fields mapping or modify an existing one, from the Pipelines List:

  1. Click the Open button next to the pipeline to be configured.
  2. In the Mapping section, click the three-dot menu at the top-right.

  3. Click Edit Mapping.
  4. Click the Start Live Tail button in the navigation menu.

    It may take up to a minute for the log data to load as it builds a configuration for a temporary shipper, starts the temporary shipper, and allows the shipper to collect data.

  5. Review the fields and data structure of the incoming logs, and their respective frequencies.

    The mini frequency graph can be hovered over to get full details.

    pipelines.properties.mapping.frequencies

    These bars represent the following, from the top down:

    BarDescription
    Relative Frequency

    Shows the number of times this field has appeared in relation to the most common field.

    For example, the most common field has a full bar, even if it only occurs in a small sub-set of the whole log sample.

    A field showing about half as often as the most common field displays a 50% bar.

    Absolute Frequency

    Shows the number of times this field has appeared in the entire log sample.

    When loading the field mapping from a pipeline configuration as opposed to running a live tail, the absolute frequency shows as N/A and the bar is full (as if it were 100%). This is because the full log sample is not saved as part of the field mapping, and there is no way to offer meaningful statistics.

  6. Roll over each field to display the variety of the values, their type, and their respective frequencies.
  7. For each field of interest, pick a LogRhythm SIEM field from the Mapping drop-list.

    pipelines.properties.mapping.field.mapping

    This list is searchable by any word contained in the following:

    SearchableDescription
    Field Name

    The field name is displayed in bold at the top-left of each item in the list.

    For example, Vendor Message ID.

    Field Tag

    The field tag is displayed in brackets on the top-right of each item in the list.

    For example, <vmid>.

    Field Description

    The field description is displayed in gray at the bottom of each item.

    For example, Specific vendor for the log used to describe a type of event.

    pipelines.properties.mapping.field.mapping.vmid

  8. (Optional.) Select one or more Modifier from the Modifiers drop-list.
  9. Once the mapping is complete, click the Save button in the navigation bar.

Share and Import Fields Mapping

To share or import an already-existing fields mapping, from the Pipelines list:

  1. Click the Open button next to the pipeline to be configured.
  2. In the Mapping section, click the three-dot menu at the top-right.

  3. Click Share and Import Mapping.
  4. (Optional.) If you are sharing a fields mapping, toggle the following options as desired:

    OptionDescription
    Share Field FrequenciesInclude the frequency statistics for each field in your upload.
    Share Field Values

    Include all observed values in each field.

    Ensure your file has been properly sanitized, as this option could lead to sharing personal information.

    Refer to the Sanitization Options section below for more information.

    Share Field SIEM MappingInclude the SIEM tags mapping for each field in your upload.
    Share Field ModifiersInclude the modifiers for each field in your upload.
  5. Choose one of the following options:

    OptionDescription
    Share as a Local File

    Generate and download your already-configured fields mapping as an importable JSON OC Admin mapping file.

    This file can then be imported in any other pipeline, either on the same OC Admin server or a different one.

    Share via the Marketplace

    Share your already-configured fields mapping with other OC Admin users as a pipeline template.

    This allows any other OC Admin user to download it to complement an existing pipeline, or to create a new one from the template.

    Refer to the Marketplace Considerations section below before sharing or downloading from the OC Admin Marketplace.

    Import from Local FileImport a fields mapping using an OC Admin mapping file.
    Import from MarketplaceImport a mapping that has been shared by another OC Admin user.

Sanitization Options

When sharing a fields mapping to the marketplace, you have the ability to sanitize the data so that personal information is not shared with third parties.

The following table shows the default sharing settings for the four major data points that could be sanitized when uploading a mapping. If you disable sharing for the data point, the third column shows how that information is replaced in the upload.

SharingDefaultExported value(s) if Sharing is Disabled
FrequenciesEnabled1
ValuesDisabledNone (empty array)
SIEM MappingEnabledNone
ModifiersEnabledNone

Marketplace Considerations

Before an upload to the online Marketplace occurs, you are prompted to:

  1. Decide what to share (collection configuration only, fields mapping only, or both).
  2. Ensure all configuration data has been sanitized and personal data has been removed.
  3. When sharing a fields mapping, decide which part of the mapping should be shared (field frequencies, field SIEM mapping, field modifiers, etc.).
  4. Provide a meaningful name for the file.
  5. Provide a logo for the file.
  6. Complete the Read Me, based on the provided template (this allows users to follow step-by-step instructions to use your template).
  7. Click Export to EZ Marketplace.

Once a Pipeline Template has been uploaded, it is marked as Pending Review, and will not be downloadable by other users until it has successfully passed review from LogRhythm staff, at which point it is marked as Visible.

Mapping Settings

The Mapping Settings menu is located at the top-right of the Mapping window.

pipelines.properties.mapping.configure.settings

The following options are available in this menu:

OptionDescription
Show types in Fields listEnable this toggle to display log source types in the Fields list during custom mappings.
Show types in Value popupsEnable this toggle to display log source types in Value pop-ups during custom mappings.
Accept and Wrap non-JSON logs

Enabling this toggle wraps any JSON data that is incorrectly formatted into a "fake" JSON field.

With this option enabled, Open Collector is unable to process these incorrectly formatted logs. This option is best used to bypass the JSON format verification and view non-JSON data received from the shipper.

Extract Beat's '.message' only

Enabling this toggle is sometimes necessary for beats that wrap non-JSON data in a .message JSON entry.

For example, the jsBeat and the FileBeat.

This option needs to be enabled before processing incoming logs.

Background Process (first slider)Move the slider left (slower) to right (faster) to determine how quickly incoming logs are processed by the OC Admin client.
Max Messages in Queue (second slider)

Move the slider left (fewer) to right (more) to determine the number of incoming messages to be accepted and queued for processing.

When the set number of logs have been received, the live tail automatically stops.

Any incoming logs in transit when the set number has been reached are ignored.

Max Messages in Processed Logs (third slider)

Move the slider left (fewer) to right (more) to determine how many messages from the incoming queue will be processed.

When the set number of logs have been processed, the background process automatically stops.

Any logs still in the queue when the set number has been reached are left unprocessed.

Advanced Mapping Settings

The Advanced Mapping Settings menu is located at the top-right of the Mapping window, to the left of the Settings menu.

pipelines.properties.mapping.configure.advanced

The following options are available in this menu:

OptionDescription
Show extra detailsEnable this toggle to show extra details on mappings.
Show QueuesEnable this toggle to show the incoming log queues.
Show Communication & Shipper's Logs

Enable this toggle to display the log trail of the Shipper at the very bottom of the page.

If no logs are coming in after starting the live tail, it's a good idea to look at the Shipper's logs and scout for any potential error messages, such as:

  • Access denied to the URL or file
  • Authentication issues
  • Timeouts
  • Rate limiting error

Manual Import of Log Samples

Some log samples can be imported into OC Admin manually. To manually import log samples, from the Mapping screen:

  1. Click the Manual Import button in the navigation bar.
  2. Select one of the following options:

    OptionDescription
    Single Log

    Accepts a single JSON object, representing a single log sample.

    The following are examples of single log samples:

    Compact format:

    CODE
    {"timestamp":"20210422T16:40:00","id":"abcdef-1234"}

    Spaced/tabbed format:

    CODE
    {
      "timestamp":"20210422T16:40:00",
      "id":"abcdef-1234"
    }

    Mixed format:

    CODE
    {
      "timestamp":"20210422T16:40:00", "id":
    "abcdef-1234"
    }
    Multiple Logs

    Accepts multiple JSON objects, representing multiple sample logs, each separated by a carriage return.

    The following are examples of multiple logs separated by carriage return:

    Compact format:

    CODE
    {"timestamp":"20210422T16:40:00","id":"abcdef-1234"}
    {"timestamp":"20210422T16:43:00","id":"xyzmno-8754"}

    Spaced format:

    CODE
    { "timestamp": "20210422T16:40:00", "id":" abcdef-1234" }
    { "timestamp": "20210422T16:43:00", "id": "xyzmno-8754"}

    Mixed format:

    CODE
    { "timestamp": "20210422T16:40:00", "id":" abcdef-1234" }
    {"timestamp":"20210422T16:43:00","id":"xyzmno-8754"}
    File Import

    Accepts one or more files, and processes the contents according to the selected options.

    For details on the possible import options, refer to File Import of Log Samples below.

  3. Click the Add to Queue 

    pipelines.properties.mapping.field.manual-import-add-to-queue
    button to import single logs or multiple logs.

    When using a file import, more steps are required. Refer to File Import of Log Samples below for more information.

File Import of Log Samples

When File Import is selected during step 2 of the previous section, clicking the Add to Queue button in step 3 presents additional options to determine how the file(s) are processed.

  1. Select one of the following options:

    OptionDescription
    As a Single Log

    Select this option if each uploaded file contains a single JSON log.

    Good examples of single JSON logs are outlined in step 2 in the section above.

    As an Array of Logs

    Select this option if each uploaded file contains an array of one or more logs.

    The following are examples of log samples in an array:

    Compact format:

    CODE
    [{"timestamp":"20210422T16:40:00","id":"abcdef-1234"},{"timestamp":"20210422T16:43:00","id":"xyzmno-8754"}]

    Spaced/tabbed format:

    CODE
    [
      {
        "timestamp":"20210422T16:40:00",
        "id":"abcdef-1234"
      },
      {
        "timestamp":"20210422T16:43:00",
        "id":"xyzmno-8754"
      }
    ]

    Mixed format:

    CODE
    [{
        "timestamp":"20210422T16:40:00","id":"abcdef-1234"
      },
      {"timestamp":
    "20210422T16:43:00",
        "id":"xyzmno-8754"}
    ]
    As a Set of Logs

    Select this option if each uploaded file contains a set of multiple logs, separated by carriage return.

    Good examples of JSON log sets ("multiple logs") are outlined in step 2 in the section above.

    The process of uploading log sample files as a set is very dependent on how the logs are formatted:

    • No more than one log per line.
    • Empty lines are ignored.
    • Each line must contain a proper JSON entry; improperly formatted lines are ignored.
    • Each line must be separated by at least a carriage return character (\r aka CR aka ASCII #13).
    • Line feed characters (\n aka LF aka ASCII #10) are ignored.
  2. Select the file(s) from your machine to begin the upload.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.