Splunk AppDynamics

controller-info.xml XML encodings

CommunityUser
Splunk Employee
Splunk Employee

I recently began an effort to automate monitoring of an application.  I ran into a problem where the machine agent service would start and then stop.  The log file said it was unable to read controller-info.xml.  My C# application was using an XmlDocument to load and save the XML.  I discovered that it was saving as UTF-8 with BOM.  The oringal controller-info.xml was saved as UTF-8 w/o BOM.  This small change prevents the machine agent service from running.  When I fixed the encoding it started working again.

My issue is that any agent service should be capable of handling XML whether it has a BOM or not.

Labels (1)
0 Karma

Atyuha_Pal
Contributor

Hi,

Could you please share the machine agent log to debug the issue further.

Thanks,

Atyuha

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

Here is the log.  To replicate, use notepad++ and edit controller-info.xml.  Change the encoding to UTF-8 and then restart the machine agent service.

0 Karma

Atyuha_Pal
Contributor

Hi.


We have seen same issue in the past when the xml file is opened with certain XML specific editors.

 Also can you download the agent again and edit controller-info.xml with vi editor and let me know how it goes? 

Thanks,

Atyuha

0 Karma
Get Updates on the Splunk Community!

Get Schooled with Splunk Education: Explore Our Latest Courses

At Splunk Education, we’re dedicated to providing incredible learning experiences that cater to every skill ...

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...