Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

D toc

This section describes how to enable or disable logging of user activities and transfer of the logs to

D s company
rtrue
. When this feature is enabled, user activities are captured locally on the 
D s item
node
node
 in a series of log files. Periodically, these log files are uploaded to a predefined S3 bucket, where 
D s company
 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

D s platform
instance.

Info

NOTE: During initial deployment, this service may be enabled for you. You can use the information below to disable the service.

 

D s company
 captures the following types of usage information, which are available in different releases.

Analytics TypeDescription
D s item
Analytics
Analytics
D s company
proprietary capture of information about the
D s platform
Segment AnalyticsAnalytics for various common data segments, such as Google and Marketo.

Configuration Steps

The following configuration steps must be completed:

  1. Customer must file a request with  
    D s support
     when this service is to be enabled for the first time. 
  2. Services must be enabled on the 
    D s item
    itemnode
    .
  3. Open user logging port, if not already opened. 

  4. Generate and publish credentials.
  5. Define cron job to upload logs.

Customer Requests

To enable this service, customers must file a support ticket with

D s support
. In your request, please include a request for the appropriate API write key values to insert in the configuration. Details are below.

Configuration for Segment Analytics

D s config

The following settings apply to segment analytics. 

PropertyDescription
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

D s support
.

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. 

 

  1. Make changes to the above properties as needed.
  2. Save your changes and restart the platform.

Configuration for Amplitude Analytics client-side SDK

PropertyDescription
Code Block
languagejs
"telemetry.amplitude.client.enabled"
When set to true, enable logging of user events via Amplitude's client-side SDK.
Code Block
languagejs
"telemetry.amplitude.client.writeKey"
Info

NOTE: For more information on the key value to insert, please contact

D s support
.

Open user logging port

Info

NOTE: To receive the full benefits of this feature, the

D s item
itemnode
must be able to connect to the public Internet.

On the server hosting the 

D s platform
, the following port must be opened:

  • Port 80 (HTTP) and/or 
  • Port 443 (HTTPS)

Create credentials file

To connect to S3, the 

D s platform
 requires that a set of credentials be generated and stored in the following directory. This credentials is provided by 
D s company
.

Code Block
/opt/trifacta/bin/log-forwarding

Generate cron job

To regularly upload the generated logs to 

D s company
, you can configure a cron job to transfer the files. 

Steps:

  1. Create an agent or script to periodically run the node process log-forwarding.js. You should run this once per day.
  2. An example command to run this script from the deployment directory is the following:

    Code Block
    languagebash
    titleexecute command
    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.