Hi,

I am trying to write an ansible role for our graylog deployment and i want 
to add inputs and possibly streams automatically.
For me the api-browser not really helpful. I can't seem to find the right 
way to assemble the json not even for testing with swagger.
Is there any source of information apart from swagger.

Like what should go into configuration?
{
  "title": "string",
  "type": "string",
  "global": "boolean",
  "configuration": "object",
  "node": "string"
}

if i do an INPUT GET on a test input i get pretty different object compared 
to what it says i have to post to start one.

any help would be nice.

{
  "inputs": [
    {
      "id": "56ad30bde4b0b6baccd3b306",
      "state": "RUNNING",
      "started_at": "2016-01-30T21:53:01.862Z",
      "detailed_message": null,
      "message_input": {
        "title": "rsyslog input",
        "persist_id": "56ad30bde4b0b6baccd3b306",
        "global": false,
        "name": "Syslog TCP",
        "content_pack": null,
        "input_id": "56ad30bde4b0b6baccd3b306",
        "created_at": "2016-01-30T21:53:01.861Z",
        "type": "org.graylog2.inputs.syslog.tcp.SyslogTCPInput",
        "creator_user_id": "admin",
        "attributes": {
          "recv_buffer_size": 1048576,
          "port": 5140,
          "tls_key_password": "",
          "tls_key_file": "",
          "tls_client_auth_cert_file": "",
          "max_message_size": 2097152,
          "tls_client_auth": "disabled",
          "override_source": "",
          "allow_override_date": true,
          "bind_address": "0.0.0.0",
          "tls_cert_file": ""
        },
        "static_fields": {}
      }
    }
  ],
  "total": 1
}

-- 
You received this message because you are subscribed to the Google Groups 
"Graylog Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/graylog2/57ceac43-499e-4849-a1a1-3c5ef3c9d4cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to