Child pages
  • Edit CDN Resource Raw Log Configuration
Skip to end of metadata
Go to start of metadata

To edit the raw log configuration, use the following request:

POST /cdn_resources/raw_log.json
POST /cdn_resources/raw_log.json

To disable raw logs:

XML Request Example:

curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' --url 'http://onapp.test/cdn_resources/raw_log.xml' -d '<raw_log><protocol/></raw_log>'

JSON Request Example:

curl -i -X POST -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' --url 'http://onapp.test/cdn_resources/raw_log.json' -d '{"raw_log":{"protocol":""}}'

Where:

protocol - delivery protocol

 

To configure the FTP/SFTP delivery protocol:

XML Request Example:

curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' --url 'http://onapp.test/cdn_resources/raw_log.xml' -d '<raw_log><protocol>ftp</protocol><uri>rawlog.com</uri><user>password</user><pass>password</pass></raw_log>'

JSON Request Example:

curl -i -X POST -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' --url 'http://onapp.test/cdn_resources/raw_log.json' -d '{"raw_log":{"protocol":"ftp","uri":"rawlog.com","user":"username","pass":"password"}}'

Where:

protocol - delivery protocol

uri - the hostname of the server to which the log will be delivered

user - the user name of the FTP/SFTP client on the server to which the log will be delivered

pass - the password of the FTP/SFTP client on the server to which the log will be delivered

 

To configure the Syslog delivery protocol:

XML Request Example:

curl -i -X POST -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml' --url 'http://onapp.test/cdn_resources/raw_log.xml' -d '<raw_log><protocol>syslog</protocol><uri>rawlog.com</uri><syslog_protocol>tcp</syslog_protocol><port>80</port></raw_log>'

JSON Request Example:

curl -i -X POST -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json' --url 'http://onapp.test/cdn_resources/raw_log.json' -d '{"raw_log":{"protocol":"syslog","uri":"rawlog.com","syslog_protocol":"tcp","port":"80"}}'

Where:

protocol - delivery protocol

uri - the hostname of the server to which the log will be delivered

syslog_protocol - the protocol that will be used for sending the log: TCP or UDP

port - he port number of the syslog server to which the log will be delivered

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels