cloudflash-clogger

cloudflash clogger module implements logger configuration on cloudflash enabled devices

cloudflash-clogger

List of logger-client APIs

VerbURIDescription
POST/logger/clientCreate logger client configuration
GET/logger/clientList logger client configuration
GET/logger/client/:idList logger client configuration by ID
PUT/logger/client/:idUpdate logger client configuration by ID
DELETE/logger/client/:idDelete a logger client configuration by ID
POST/logger/client/:id/sourceCreate logger client source configuration
GET/logger/client/:id/sourceList logger client source configuration
GET/logger/client/:id/source/:sidList logger client source configuration by ID
PUT/logger/client/:id/source/:sidUpdate logger client source configuration by ID
DELETE/logger/client/:idsource/:sidDelete a logger client source configuration by ID
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

{
"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": ""
}
}
{
   "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"
}
Verb      URI                       Description
GET     /logger/client             List logger client configuration.
[
   {
       "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"
   }
]
Verb      URI                       Description
GET     /logger/client/:id             List logger client configuration by ID.
{
   "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"
}
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

{
   "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": ""
   }
   
}
{
   "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"
}
Verb      URI                            Description
DELETE   /logger/client/:id         Delete existing logger client configuration by ID.

Example Request and Response

DELETE http://localhost:8080/logger/client/7557cafa-19f9-42a3-baef-776979226db8
Status Code: 204 No Content
Connection: keep-alive
Date: Mon, 20 Jan 2014 14:01:03 GMT
X-Powered-By: Zappa 0.4.22
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

{
"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
}

]
}
{
   "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"
}
Verb      URI                                Description
GET     /logger/client/:id/source             List logger client source configuration.
[
   {
       "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"
   }
]
Verb      URI                                    Description
GET     /logger/client/:id/source/:sid           List logger client source configuration by SID.
{
   "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"
}
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

{
"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"
}

]
}
{
   "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"
}
Verb      URI                                 Description
DELETE   /logger/client/:id/source/:sid       Delete logger client source configuration by SID.

Example Request and Response

DELETE http://67.229.243.14:5000/logger/client/7557cafa-19f9-42a3-baef-776979226db8/source/b4c56c60-43bf-4e16-91c6-fec18114508b
Status Code: 204 No Content
Connection: keep-alive
Date: Tue, 28 Jan 2014 09:20:10 GMT
X-Powered-By: Express