How update Input node value

Hi, using Graylog 4.1.6 I need to create input using content pack.
But I don’t see where I can set the node value as it is not global.

Is there a way to set it in the content pack json?
If not I try to use the Graylog ReST API that we can find in Node menu.

But even if I have the node id and the input id the put rest service give me error on missing parameters that should be optional like title

But I have the follow error message:

{
“type”: “ApiError”,
“message”: “Cannot construct instance of org.graylog2.rest.models.system.inputs.requests.InputCreateRequest, problem: Null title\n at [Source: (org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream); line: 4, column: 1]”
}

Why I should add the title if it is optional?
Even if I add it, the error message continue with type and then with configuration.

I just need to set the node id because I cannot do it with content pack.
Can somebady help me?

Hello,

I have received an error like that when using PUT, all section need to be filled out.
Have you tried using POST?

Hi @gsmith
post is not useful because is used to create a new input. There is no parameter that I can set to identify the input that I want update

It seems a game over for me

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.