This section describes how to enable or disable logging of user activities and transfer of the logs to
. When this feature is enabled, user activities are captured locally on the
in a series of log files. Periodically, these log files are uploaded to a predefined S3 bucket, where
can ingest the logging activity to improve the product and assist in troubleshooting.
Tip |
---|
Tip: This feature is useful for providing better suggestions and machine-based learning to the instance. |
Info |
---|
NOTE: During initial deployment, this service may be enabled for you. You can use the information below to disable the service. |
captures the following types of usage information, which are available in different releases.
Analytics Type | Description |
---|
| proprietary capture of information about the |
Segment Analytics | Analytics for various common data segments, such as Google and Marketo. |
Configuration Steps
The following configuration steps must be completed:
- Customer must file a request with when this service is to be enabled for the first time.
- Services must be enabled on the .
Open user logging port, if not already opened.
- Generate and publish credentials.
- Define cron job to upload logs.
Customer Requests
To enable this service, customers must file a support ticket with
. In your request, please include a request for the appropriate API write key values to insert in the configuration. Details are below.
Configuration The platform's custom-built telemetry system is controlled by the following config field in
:Property | Description |
---|
Code Block |
---|
| "webapp.client.enableUserEventLogging" |
| When set to true , enable logging of user events via client-side telemetry. |
The following settings apply to segment analytics.
Property | Description |
---|
Code Block |
---|
"webapp.enableAnalytics": false, |
| When true , segment analytics are globally enabled. When false , no data is recorded for any segment or forwarded to any channel. |
Code Block |
---|
"webapp.analytics.segmentWriteKey": "<YOUR_VALUE_HERE>", |
| For remote analytics, this property identifies the segment API writeKey matching the project to which to push. Within the Segment project lives the configuration for each sink (e.g Google Analytics, Marketo). Info |
---|
NOTE: For more information on the key value to insert, please contact . |
|
Code Block |
---|
"webapp.analytics.enabledChannels": ["Log","Amplitude"], |
| The channels for which to record data: Log | Google Analytics | Marketo | Amplitude | <future sink>. Log is the default channel.
For remote analytics, this value and the segmentWriteKey are independent, enabling two points of control. For example, if you wanted Marketo to receive analytics, you'd need to include it in enabledChannels and also hook up that integration for your project in Segment. |
- Make changes to the above properties as needed.
- Save your changes and restart the platform.
Configuration Property | Description |
---|
Code Block |
---|
| "telemetry.amplitude.client.enabled" |
| When set to true , enable logging of user events via Amplitude's client-side SDK. |
Code Block |
---|
| "telemetry.amplitude.client.writeKey" |
|
Info |
---|
NOTE: For more information on the key value to insert, please contact . |
|
Open user logging port
Info |
---|
NOTE: To receive the full benefits of this feature, the must be able to connect to the public Internet. |
On the server hosting the
, the following port must be opened:
- Port 80 (HTTP) and/or
- Port 443 (HTTPS)
Create credentials file
To connect to S3, the
requires that a set of credentials be generated and stored in the following directory. This credentials is provided by
.
Code Block |
---|
/opt/trifacta/bin/log-forwarding |
Generate cron job
To regularly upload the generated logs to
, you can configure a cron job to transfer the files.
Steps:
- Create an agent or script to periodically run the node process
log-forwarding.js
. You should run this once per day. An example command to run this script from the deployment directory is the following:
Code Block |
---|
node bin/log-forwarding/src/log-forwarding.js protobuf-events.log segment-proto.log cleaned-join-logs.txt |
Disable
To disable the service, set webapp.enableAnalytics
to false
. Then, restart the platform.