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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...