Before you post: Your responses to these questions will help the community help you. Please complete this template if you’re asking a support question.
Don’t forget to select tags to help index your topic!
1. Describe your incident:
Not able to create sidecar configuration using PUT API
I use below JSON to put to /sidecar/configurations
{
"id": "example-id",
"name": "Example Sidecar Configuration",
"description": "Configuration for the Example Sidecar",
"collector_id": "63d79cc713bf3b69db7f8a65",
"node_id": "b6c90b87-3604-446b-8f0b-8365b769daef",
"configuration": "filebeat.input:\n- type: log\n enabled: true\n paths:\n - /var/log/*.log",
"tags": [
"windows"
]
}
The Error I get everytime is below
{
"type": "ApiError",
"message": "Cannot construct instance of `org.graylog.plugins.sidecar.rest.models.Configuration`, problem: Null color\n at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 11, column: 1]"
}
What is the solution to fix this problem?
also can anyone give me a sample snippet of json to create the sidecard configuration using API