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!

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...