-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KAA-1583: REST log appender - reviewed. [master] #1404
KAA-1583: REST log appender - reviewed. [master] #1404
Conversation
|
||
The easiest way to create REST log appender for your application is by using Admin UI. | ||
To create a Cassandra log appender for your application using the [Administration UI]({{root_url}}Glossary/#administration-ui): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
REST log appender
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
... | ||
``` | ||
|
||
After sending logs from [Kaa client]({{root_url}}Glossary/kaa-client), [Kaa server]({{root_url}}Glossary/kaa-server) will use previously created REST log appender which will send data to your custom service based on above code. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broken links: Kaa client, Kaa server.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
To do this, select your application in the list and click **Schemas** > **Log** > **Add schema**. | ||
![Add log schema](attach/rest-log-appender1.png) | ||
|
||
3. Upload the following configuration schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step refers to the previous one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
|
||
3. Upload the following configuration schema. | ||
|
||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't upload the schema. Used the following schema:
{
"type":"record",
"name":"Data",
"namespace":"org.kaaproject.kaa.example.mobile.log",
"fields":[
{
"name":"timestamp",
"type":[
"long",
"null"
]
},
{
"name":"data",
"type":[
"bytes",
"null"
]
},
{
"name":"endpointKeyHash",
"type":[
{
"type":"string",
"avro.java.string":"String"
},
"null"
]
},
{
"name":"hashFunction",
"type":[
{
"type":"string",
"avro.java.string":"String"
},
"null"
]
}
]
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
|
||
5. Generate an [SDK for your platform]({{root_url}}Programming-guide/Using-Kaa-endpoint-SDKs/) and add the downloaded SDK to your project directory. | ||
|
||
6. Run a sample application from the [Kaa Sandbox]({{root_url}}Glossary/kaa-sandbox) to test your new log appender. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete this step, user doesn't use any demo from Sandbox in this guide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Backport for #1408
No description provided.