Reporting

Problem adding Child Object to Object Model

Evanitis
New Member

I am new to Splunk Object Modela and have started trying to crate my first object model. I have completed the tutorial but have run into issues creating my first real world model.

I have created a Root Event with a constraint of sourcetype="Job Summary Report" and added a number of fields from this sourcetype to the object.

Subsequently if I try and add a child object I get the message "An object cannot have attributes with duplicate display names" This happens when trying to add a second child object.

How do I determine what attribute is causing the conflict ? I cannot see any obvious duplicates and all the attributes at this point are inherited from the the root object.

Are there any restrictions on the attribute names in the object model I should be aware of ?

Tags (1)
0 Karma

Evanitis
New Member

As it turns out, the issue (which is documented, but not anywhere obvious) is that the Field Names in my source type had spaces in them. This just fouls up the data model functions.

I ended up redefining my source to assign specific field names to it. The sourcetype was a custom type based on CSV which as far as I can tell should have removed spaces from the fields names but didn't. I doctored props.conf and used FIELD_NAMES to specify better field names for the columns and FIELD_HEADER_REGEX to ignore the old header record.

I should have been able to specify CLEAN_KEYS somehow but the exact usage escaped me (this time).

0 Karma

aneels_splunk
Splunk Employee
Splunk Employee

The child should automatically inherit attributes from its parent, but it sounds like you've tried to add them again. Try deleting the attributes you've re-defined.

0 Karma

Evanitis
New Member

As I said, all the objects were inherited from the root object, so I had not added any attributes. But thanks for responding!

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...