Skip to main content
Skip table of contents

Configure the AWS S3 Log Source in the SIEM

This section provides instructions for configuring the AWS S3 log source in the LogRhythm SIEM using the log source virtualization template.

The Open Collector sends the output of every Beat to the Agent in a single syslog stream. The parent log source is a generic type: "Syslog - Open Collector." A log source virtualization template included with the LogRhythm Knowledge Base (KB) creates child log sources for each beat.

Prerequisites

  • LogRhythm Client Console 
  • LogRhythm Administrator Account
  • Open the following port:

    DirectionPortProtocolSourcePurpose
    Outbound443HTTPSAWSS3 BeatUsed by AWS SDK for Go to make https calls to get sqs queue events and to download bucket data

Step 1: Configure Syslog Relay

This step explains how to configure the Syslog Relay. The Open Collector needs Syslog Relay for the following reasons:

  • By default, the agent timestamps syslog messages as they come in. The timestamp in the SIEM should reflect when the log was generated, not when the agent received this log.
  • An additional Syslog Relay Regular Expression is required to correctly extract the timestamp.

To configure Syslog Relay:

  1. Click the System Monitors tab.
  2. Double-click the agent to which you will send the Open Collector syslog.
  3. Click the Syslog and Flow Settings tab.
  4. Select the Enable Syslog Server check box, if it is not already selected.
  5. Type the Open Collector IP Address in the Syslog Relay Hosts field on the left.
  6. Type the following regular expression as the first line in Syslog Relay Regular Expressions:

    CODE
    ^<(?<priority>\d{1,3})>\s*(?<message>(?<year>\d{4})-(?<month>\d{2})-(?<day>\d{2})T(?<hour>\d{2}):(?<minute>\d{2}):(?<seconds>\d{2})(\.(?<ms>\d+))?Z?[-+]?[0-9:]{0,}\s.*)
  7. Click OK.

Here is an example of a configured Syslog Relay, where the Open Collector IP address is 10.3.0.1.

Step 2: Accept the Pending Log Source

After Open Collector logs are sent to the Windows System Monitor Agent, you need to accept the pending log source.

  1. Click the Log Sources tab.
  2. In the New Log Sources grid, select the Action check boxes for the following:
    • Log Source Type. Syslog - Open Collector

      Do not select the AWS-specific log source types yet. You will do that in a later step.

    • Log Processing Policy. LogRhythm Default

  3. Right-click the selection, click Actions, and then click Accept.

  4. Select one of the following:

    • Customize and change the following as needed:
      • Collection System Monitor Entity

      • Log Message Processing Settings

      • Log Data Management and Processing Settings

      • Silent Log Message Source Settings

    • Default to select customized defaults that were previously selected. 

    • Select a default batch amount between 100 and 5000.

  5. Click OK.
  6. Click Refresh to see the newly accepted Log Source in the grid.

Step 3: Apply the Log Source Virtualization Template for AWS S3 Log Messages

Use the log source virtualization template included in the KB to create a log source specifically for AWS S3 logs.

  1. Double-click the newly accepted Open Collector Log Source.
    The Log Message Source Properties window appears.

  2. Click the Log Source Virtualization tab.

  3. Select the Enable Virtualization check box.

  4. Click Create Virtual Log Sources.
    The Create Virtual Log Sources dialog box appears.

  5. In the Log Source Virtualization Template drop-down menu, right-click and select Uncheck All.

  6. Select Open Collector - AWS S3.

    This should be the only template checked.

  7. Click Save.
    The confirmation prompt appears.
  8. Click OK.
    New Log Sources appear in the grid as children of your parent log source.

Step 4: Apply the Log Source Virtualization Template for AWS S3 Beat Heartbeat Messages

Use the log source virtualization template included in the KB to create a log source specifically for AWS S3 heartbeat logs.

  1. Double-click the newly accepted Open Collector Log Source.
    The Log Message Source Properties window appears.
  2. Click the Log Source Virtualization tab.
  3. Select the Enable Virtualization check box.
  4. Click Create Virtual Log Sources.
    The Create Virtual Log Sources dialog box appears.
  5. In the Log Source Virtualization Template menu, right-click and select Uncheck All.
  6. Select Open Collector - S3beat Heartbeat.

    This should be the only template checked.

  7. Click Save.
    The confirmation prompt appears.
  8. Click OK.
    New log sources appear in the grid as children of your parent log source.

Step 5: (Optional) Enable Silent Log Source Detection

Silent Log Source Detection tells you when one of your log sources has stopped reporting logs.

  1. Double-click a child log source—for example, Syslog - Open Collector - AWS S3.
    The Virtual Log Message Source Properties window appears.
  2. Go to the Additional Settings tab.
  3. Select the Enable Silent Log Source Detection check box.
  4. Configure warning and error intervals. LogRhythm recommends warning after 1 hour and error after 2 hours.
  5. Click OK.
  6. Go to the Alarm Rules tab.
  7. Search for LogRhythm Silent Log Source Error and ensure that the value in the Status column is Enabled.



JavaScript errors detected

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

If this problem persists, please contact our support.