cloudflash-clogger

1.0.1 • Public • Published

cloudflash-clogger

List of logger-client APIs

Verb URI Description
POST /logger/client Create logger client configuration
GET /logger/client List logger client configuration
GET /logger/client/:id List logger client configuration by ID
PUT /logger/client/:id Update logger client configuration by ID
DELETE /logger/client/:id Delete a logger client configuration by ID
POST /logger/client/:id/source Create logger client source configuration
GET /logger/client/:id/source List logger client source configuration
GET /logger/client/:id/source/:sid List logger client source configuration by ID
PUT /logger/client/:id/source/:sid Update logger client source configuration by ID
DELETE /logger/client/:idsource/:sid Delete a logger client source configuration by ID

create logger client configuration

Verb      URI                       Description
POST     /logger/client             Create logger client configuration.

On success it returns JSON data with the UUID for logger client configuration.

Example Request and Response

Request JSON

{
"Networking": {
    "debug_level": 3,
    "primary_host": "logger.dev.intercloud.net",
    "primary_port": 443,
    "protoSearch": "corenova.net.proto",
    "protocols": "XFORMXFER3:XFORMXFER2_PLAIN:XFORMXFER:BASIC",
    "secondary_host": "",
    "secondary_port": "",
    "ssl_ca_list": "/etc/ca-bundle.pem",
    "ssl_certfile": "/etc/identity/snap.cert",
    "ssl_keyfile": "/etc/identity/snap.key",
    "ssl_password": "",
    "ssl_records": 1,
    "tertiary_host": "",
    "tertiary_port": ""
}
}

Response JSON

{
   "Networking":
   {
       "debug_level": 3,
       "primary_host": "logger.dev.intercloud.net",
       "primary_port": 443,
       "protoSearch": "corenova.net.proto",
       "protocols": "XFORMXFER3:XFORMXFER2_PLAIN:XFORMXFER:BASIC",
       "secondary_host": "",
       "secondary_port": "",
       "ssl_ca_list": "/etc/ca-bundle.pem",
       "ssl_certfile": "/etc/identity/snap.cert",
       "ssl_keyfile": "/etc/identity/snap.key",
       "ssl_password": "",
       "ssl_records": 1,
       "tertiary_host": "",
       "tertiary_port": ""
   },
   "id": "7557cafa-19f9-42a3-baef-776979226db8"
}

List logger client configuration

Verb      URI                       Description
GET     /logger/client             List logger client configuration.

Response JSON

[
   {
       "Networking":
       {
           "debug_level": 3,
           "primary_host": "logger.dev.intercloud.net",
           "primary_port": 443,
           "protoSearch": "corenova.net.proto",
           "protocols": "XFORMXFER3:XFORMXFER2_PLAIN:XFORMXFER:BASIC",
           "secondary_host": "",
           "secondary_port": "",
           "ssl_ca_list": "/etc/ca-bundle.pem",
           "ssl_certfile": "/etc/identity/snap.cert",
           "ssl_keyfile": "/etc/identity/snap.key",
           "ssl_password": "",
           "ssl_records": 1,
           "tertiary_host": "",
           "tertiary_port": ""
       },
       "id": "7557cafa-19f9-42a3-baef-776979226db8"
   }
]

List logger client configuration

Verb      URI                       Description
GET     /logger/client/:id             List logger client configuration by ID.

Response JSON

{
   "Networking":
   {
       "debug_level": 3,
       "primary_host": "logger.dev.intercloud.net",
       "primary_port": 443,
       "protoSearch": "corenova.net.proto",
       "protocols": "XFORMXFER3:XFORMXFER2_PLAIN:XFORMXFER:BASIC",
       "secondary_host": "",
       "secondary_port": "",
       "ssl_ca_list": "/etc/ca-bundle.pem",
       "ssl_certfile": "/etc/identity/snap.cert",
       "ssl_keyfile": "/etc/identity/snap.key",
       "ssl_password": "",
       "ssl_records": 1,
       "tertiary_host": "",
       "tertiary_port": ""
   },
   "id": "7557cafa-19f9-42a3-baef-776979226db8"
}

Update logger client configuration

Verb      URI                          Description
PUT     /logger/client/:id             Update logger client configuration.

On success it returns JSON data with the UUID for logger client configuration.

Example Request and Response

Request JSON

{
   "Networking":
   {
       "debug_level": 6,
       "primary_host": "logger.dev.intercloud.net",
       "primary_port": 443,
       "protoSearch": "corenova.net.proto",
       "protocols": "XFORMXFER3:XFORMXFER2_PLAIN:XFORMXFER:BASIC",
       "secondary_host": "",
       "secondary_port": "",
       "ssl_ca_list": "/etc/ca-bundle.pem",
       "ssl_certfile": "/etc/identity/snap.cert",
       "ssl_keyfile": "/etc/identity/snap.key",
       "ssl_password": "",
       "ssl_records": 1,
       "tertiary_host": "",
       "tertiary_port": ""
   }
   
}

Response JSON

{
   "Networking":
   {
       "debug_level": 6,
       "primary_host": "logger.dev.intercloud.net",
       "primary_port": 443,
       "protoSearch": "corenova.net.proto",
       "protocols": "XFORMXFER3:XFORMXFER2_PLAIN:XFORMXFER:BASIC",
       "secondary_host": "",
       "secondary_port": "",
       "ssl_ca_list": "/etc/ca-bundle.pem",
       "ssl_certfile": "/etc/identity/snap.cert",
       "ssl_keyfile": "/etc/identity/snap.key",
       "ssl_password": "",
       "ssl_records": 1,
       "tertiary_host": "",
       "tertiary_port": ""
   },
   "id": "7557cafa-19f9-42a3-baef-776979226db8"
}

DELETE logger client configuration

Verb      URI                            Description
DELETE   /logger/client/:id         Delete existing logger client configuration by ID.

Example Request and Response

Request Headers

DELETE http://localhost:8080/logger/client/7557cafa-19f9-42a3-baef-776979226db8

Response Header

Status Code: 204 No Content
Connection: keep-alive
Date: Mon, 20 Jan 2014 14:01:03 GMT
X-Powered-By: Zappa 0.4.22

create logger client source configuration

Verb      URI                                  Description
POST     /logger/client/:id/source             Create logger client source configuration.

On success it returns JSON data with the UUID for logger client source configuration.

Example Request and Response

Request JSON

{
"DataSource": [
{
    "exclude_urls": ".gif,.jpeg,.jpg,.mp3,.png,.mov,.avi,.html,.css,.pls",
    "file_name": "/var/log/virus.log",
    "module": "cpn.log.format.avgateway",
    "service_id": 256,
    "waldo_file": "/tmp/av-256.waldo"
},
{
    "exclude_urls": ".gif,.css,.pls,.js",
    "file_name": "/var/log/access.log",
    "module": "cpn.log.format.squidguard2",
    "service_id": 204,
    "waldo_file": "/tmp/cf-204.waldo"
},
{
    "module": "cpn.log.format.iptables_ulog",
    "nlgroup": 1,
    "service_id": 248
},
{
    "file_name": "/var/log/events.log",
    "module": "cpn.log.format.snort",
    "service_id": 247,
    "waldo_file": "/tmp/ids-247.waldo"
},
{
    "module": "cpn.log.format.syslog",
    "service_id": 247
}

]
}

Response JSON

{
   "DataSource":
   [
       {
           "exclude_urls": ".gif,.jpeg,.jpg,.mp3,.png,.mov,.avi,.html,.css,.pls",
           "file_name": "/var/log/virus.log",
           "module": "cpn.log.format.avgateway",
           "service_id": 256,
           "waldo_file": "/tmp/av-256.waldo"
       },
       {
           "exclude_urls": ".gif,.css,.pls,.js",
           "file_name": "/var/log/access.log",
           "module": "cpn.log.format.squidguard2",
           "service_id": 204,
           "waldo_file": "/tmp/cf-204.waldo"
       },
       {
           "module": "cpn.log.format.iptables_ulog",
           "nlgroup": 1,
           "service_id": 248
       },
       {
           "file_name": "/var/log/events.log",
           "module": "cpn.log.format.snort",
           "service_id": 247,
           "waldo_file": "/tmp/ids-247.waldo"
       },
       {
           "module": "cpn.log.format.syslog",
           "service_id": 247
       }
   ],
   "id": "bf1ee4a9-ba31-4bec-9ce0-daad7fb59a7a"
}

List logger client source configuration

Verb      URI                                Description
GET     /logger/client/:id/source             List logger client source configuration.

Response JSON

[
   {
       "DataSource":
       [
           {
               "exclude_urls": ".gif,.jpeg,.jpg,.mp3,.png,.mov,.avi,.html,.css,.pls",
               "file_name": "/var/log/virus.log",
               "service_id": 256,
               "waldo_file": "/tmp/av-256.waldo"
           },
           {
               "exclude_urls": ".gif,.css,.pls,.js",
               "file_name": "/var/log/access.log",
               "module": "cpn.log.format.squidguard2",
               "service_id": 204,
               "waldo_file": "/tmp/cf-204.waldo"
           },
           {
               "module": "cpn.log.format.iptables_ulog",
               "nlgroup": 1,
               "service_id": 248
           },
           {
               "file_name": "/var/log/events.log",
               "module": "cpn.log.format.snort",
               "service_id": 247,
               "waldo_file": "/tmp/ids-247.waldo"
           },
           {
               "module": "cpn.log.format.syslog",
               "service_id": 247
           }
       ],
       "id": "bf1ee4a9-ba31-4bec-9ce0-daad7fb59a7a"
   }
]

List logger client source configuration

Verb      URI                                    Description
GET     /logger/client/:id/source/:sid           List logger client source configuration by SID.

Response JSON

{
   "DataSource":
   [
       {
           "exclude_urls": ".gif,.jpeg,.jpg,.mp3,.png,.mov,.avi,.html,.css,.pls",
           "file_name": "/var/log/virus.log",
           "module": "cpn.log.format.avgateway",
           "service_id": 256,
           "waldo_file": "/tmp/av-256.waldo"
       },
       {
           "exclude_urls": ".gif,.css,.pls,.js",
           "file_name": "/var/log/access.log",
           "module": "cpn.log.format.squidguard2",
           "service_id": 204,
           "waldo_file": "/tmp/cf-204.waldo"
       },
       {
           "module": "cpn.log.format.iptables_ulog",
           "nlgroup": 1,
           "service_id": 248
       },
       {
           "file_name": "/var/log/events.log",
           "module": "cpn.log.format.snort",
           "service_id": 247,
           "waldo_file": "/tmp/ids-247.waldo"
       },
       {
           "module": "cpn.log.format.syslog",
           "service_id": 247
       }
   ],
   "id": "0ac1beed-508b-4d61-ab69-5492d06e35de"
}

Update logger client source configuration

Verb      URI                                 Description
PUT     /logger/client/:id/source/:sid        Update logger client source configuration.

On success it returns JSON data with the UUID for logger client source configuration.

Example Request and Response

Request JSON

{
"DataSource": [
{
    "exclude_urls": ".gif,.jpeg,.jpg,.mp3,.png,.mov,.avi,.html,.css,.pls",
    "file_name": "/var/log/virus.log",
    "module": "cpn.log.format.avgateway",
    "service_id": 256,
    "waldo_file": "/tmp/av-256.waldo"
},
{
    "exclude_urls": ".gif,.css,.pls,.js",
    "file_name": "/var/log/access.log",
    "module": "cpn.log.format.squidguard2",
    "service_id": 204,
    "waldo_file": "/tmp/cf-204.waldo"
},
{
    "module": "cpn.log.format.iptables_ulog",
    "nlgroup": 1,
    "service_id": 248
},
{
    "file_name": "/var/log/events.log",
    "module": "cpn.log.format.snort",
    "service_id": 247,
    "waldo_file": "/tmp/ids-247.waldo"
}

]
}

Response JSON

{
   "DataSource":
   [
       {
           "exclude_urls": ".gif,.jpeg,.jpg,.mp3,.png,.mov,.avi,.html,.css,.pls",
           "file_name": "/var/log/virus.log",
           "module": "cpn.log.format.avgateway",
           "service_id": 256,
           "waldo_file": "/tmp/av-256.waldo"
       },
       {
           "exclude_urls": ".gif,.css,.pls,.js",
           "file_name": "/var/log/access.log",
           "module": "cpn.log.format.squidguard2",
           "service_id": 204,
           "waldo_file": "/tmp/cf-204.waldo"
       },
       {
           "module": "cpn.log.format.iptables_ulog",
           "nlgroup": 1,
           "service_id": 248
       },
       {
           "file_name": "/var/log/events.log",
           "module": "cpn.log.format.snort",
           "service_id": 247,
           "waldo_file": "/tmp/ids-247.waldo"
       }
   ],
   "id": "b4c56c60-43bf-4e16-91c6-fec18114508b"
}

DELETE logger client source configuration

Verb      URI                                 Description
DELETE   /logger/client/:id/source/:sid       Delete logger client source configuration by SID.

Example Request and Response

Request Headers

DELETE http://67.229.243.14:5000/logger/client/7557cafa-19f9-42a3-baef-776979226db8/source/b4c56c60-43bf-4e16-91c6-fec18114508b

Response Header

Status Code: 204 No Content
Connection: keep-alive
Date: Tue, 28 Jan 2014 09:20:10 GMT
X-Powered-By: Express

Readme

Keywords

none

Package Sidebar

Install

npm i cloudflash-clogger

Weekly Downloads

1

Version

1.0.1

License

none

Last publish

Collaborators

  • p13e