Getting Data In

Azure Event Hub messages coming to Splunk as multiple events

l3ender
Engager

Hello,

We are integrating our on-prem Splunk (version 8.2.3) to retrieve messages from an Azure Event Hub. We have configured Linux server syslog to send to an Event Hub (Linux diagnostic extension 4.0).

We installed the Splunk Add-on for Microsoft Cloud Services app (version 4.2.0), configured the Azure app account, and created the inputs to map to the Event Hub namespace/hub name/consumer group.

We are seeing data arrive into Splunk, but it is arriving split across multiple events:

l3ender_0-1638315089525.png

 

If I add all three events together, it is valid JSON for a single event:

 

{"body":{ "time" : "2021-11-30T23:30:01.0000000Z",
  "resourceId" : "/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Compute/virtualMachines/xxx",
  "properties" : {
    "ident" : "CRON",
    "pid" : "177365",
    "Ignore" : "syslog",
    "Facility" : "authpriv",
    "Severity" : "info",
    "EventTime" : "2021-11-30T23:30:01+0000",
    "SendingHost" : "localhost",
    "Msg" : "pam_unix(cron:session): session closed for user root",
    "hostname" : "xxx",
    "FluentdIngestTimestamp" : "2021-11-30T23:30:01Z"
  },
  "category" : "authpriv",
  "level" : "info",
  "operationName" : "LinuxSyslogEvent"
},"x-opt-sequence-number":100,"x-opt-offset":"77128","x-opt-enqueued-time":1638315007941}

 

But we need such to be a single event in Splunk in order to process data effectively!

Interestingly enough, we are using the Event Hub integration to also retrieve resource diagnostic logs, and we don't see the same issue! Only when using Event Hubs for Linux diagnostics.

Has anyone faced this issue, or know how to correct the problem? Thanks!

Labels (1)
0 Karma

l3ender
Engager

We configured INDEXED_EXTRACTIONS = json in apps/Splunk_TA_microsoft-cloudservices/local/props.conf and it seemed to do the trick.

0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...