We have a use case where we would like to maintain a single information field on some of our entities.
The field name is Application Service, and it is fairly static - but not quite, so it might change over time. This field can logically only have one value, and the problem with the scheduled import, is, that if the value changes, there will be two values for this field name.
So we are trying to create a Python script, that will maintain this value, so if it changes the still will only be one value - the old one is overwritten.
The problem is that when we try to change this vallue and posts to Splunk, we get a code 200 returnkode, but the value has not changed.
This is an example code: (Please don't kill me, this is just a test, and I'm not really a Python developer)