{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"redocly_category":"Products","product_name":"Real-time","type":"markdown"},"seo":{"title":"Reviewing Real Time Triggered Activation Logs","description":"Treasure Data Product Documentation · Collect and Unify · Segment and Activate · Experiment and Analyze · Decisioning Automate with AI Scale and Trust.","siteUrl":"https://docs.treasuredata.com","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"reviewing-real-time-triggered-activation-logs","__idx":0},"children":["Reviewing Real Time Triggered Activation Logs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When a parent segment is enabled for real-time journeys and real-time trigger activations, Treasure Data automatically creates the following objects:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Database"]}," : ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["cdp_audience_<_parent_segment_id_>_rt"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Table"]}," : ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["activations"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["These objects gather information to create an activation log. You can use the activation log to track information about your activations, such as:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Failures"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Successes"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Journeys and their associated activations"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Profiles being activated"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The number of profiles activated"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This topic includes:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#creating-your-query"},"children":["Creating Your Query"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#example-queries"},"children":["Example Queries"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"#expected-results"},"children":["Expected Results"]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"creating-your-query","__idx":1},"children":["Creating Your Query"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure Data suggests that you use the Trino engine for your query. Additionally, Trino has a Time Range functionality that can help you filter the query result."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open Treasure Console."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Data Workbench"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Queries"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Query"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter your query."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Run"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Query Result"]},"."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"example-queries","__idx":2},"children":["Example Queries"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Query Using TD_TIME_RANGE With Timestamps"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT response, status, delivered, event_id, profile_id, activation_type, activation_id, activation_name, journey_name, timestamp from activations where TD_TIME_RANGE(time, 1716256019, 1716278847 )  \n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-using-td_interval","__idx":3},"children":["Query Using TD_INTERVAL"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT response, status, delivered, event_id, profile_id, activation_type, activation_id, activation_name, journey_name, timestamp from activations where TD_INTERVAL(time, '-3d/now')  \n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"query-using-td_time_range-with-specified-time-period","__idx":4},"children":["Query Using TD_TIME_RANGE With Specified Time Period"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT * from activations where TD_TIME_RANGE(time, '-12h')  \n","lang":"sql"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/reviewing-real-time-triggered-activation-logs-2024-05-22.97ea7b4a141bb698bba45c1c5be14fd63a282bd2e2cf4cfd3ea9f9784b135b55.cf3845cb.png","alt":""},"children":[]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"expected-results","__idx":5},"children":["Expected Results"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following columns might be populated based on the query request and the values available:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["error"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["response"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["status"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["delivered"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["event_id"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["profile_id"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["activation_type"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["activation_id"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["activation_name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["journey_name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fields are populated based on the event returned. For example, the ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["profile_id"]}," is populated if the event contains ",{"$$mdtype":"Tag","name":"em","attributes":{},"children":["td_client_id; otherwise"]}," , it will be null. Additionally, if there are no activation triggers for any of the following profile values:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["activation_type"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["activation_id"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["activation_name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["journey_name"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["timestamp"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["the values will be null."]}]},"headings":[{"value":"Reviewing Real Time Triggered Activation Logs","id":"reviewing-real-time-triggered-activation-logs","depth":1},{"value":"Creating Your Query","id":"creating-your-query","depth":2},{"value":"Example Queries","id":"example-queries","depth":3},{"value":"Query Using TD_INTERVAL","id":"query-using-td_interval","depth":4},{"value":"Query Using TD_TIME_RANGE With Specified Time Period","id":"query-using-td_time_range-with-specified-time-period","depth":4},{"value":"Expected Results","id":"expected-results","depth":2}],"frontmatter":{"seo":{"title":"Reviewing Real Time Triggered Activation Logs"}},"lastModified":"2026-06-01T09:09:59.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/customer-data-platform/real-time/reviewing-real-time-triggered-activation-logs","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}