Global Navigation

  • Products
  • Overview
  • Getting Started
  • Guides
  • Resources
  • Console

Table of Contents

  • Introduction
    • App Builder Overview
    • What is App Builder
    • Business Case
    • FAQ
    • Community
  • Quick Start
    • App Builder Getting Started
      • Setting Up
      • Creating your First App
      • Publishing Your App
      • Troubleshooting
    • Runtime Getting Started
      • Overview
      • Activations
      • Deploy
      • Entities
      • How Runtime Works
      • Resources
      • Setup
      • Understanding Runtime
  • Develop
    • References
    • App Builder Guides
      • Architecture Overview
        • App Hooks
        • Introduction to React Spectrum
        • Using SDKs
      • Application State
      • Application Logging
        • Azure Log Analytics
        • New Relic
        • Splunk Cloud
        • Splunk Enterprise
      • Configuration
        • Webpack Configuration
      • Deployment
        • CI/CD for App Builder Apps
        • Credential Rotation
        • Setting Response Headers
      • Development
      • Distribution
      • Events
        • Webhooks
      • Exc App
        • Interfaces
          • Modules
          • Page ObjectWithHref
          • Page ObjectWithPath
          • Page PageAPI
          • Page PageAPIProperties
          • Runtime
          • TopBar Callback
          • TopBar CustomFeedbackConfig
          • TopBar CustomSearchConfig
          • TopBar ExternalFeedbackConfig
          • TopBar HelpCenterFeedbackConfig
          • TopBar Solution
          • TopBar TopBarAPI
          • TopBar TopBarAPIProperties
          • User UserAPI
          • User UserInfo
        • Migrate App to Exp Cloud SPA
        • Modules
          • Page
          • TopBar
          • User
      • Extensions
        • Extension Migration Guide
      • Optimization
      • Security
        • Understanding Authentication
      • Telemetry
    • Runtime Guides
      • Contribution Guide
      • Asynchronous Calls
      • Creating Actions
      • Creating REST APIs
      • CI/CD Pipeline
      • Debugging
      • Logging & Monitoring
      • Reference Docs
        • API Reference
        • CLI Usage
        • Configuring Proxy
        • Environment Variables
        • Feeds
        • Multiple Regions
        • Packages
        • Prepackages
        • Runtimes
        • Sequences & Compositions
        • Triggers & Rules
        • WSK Usage
      • Security General
      • Securing Web Actions
      • System Settings
      • Throughput Tuning
      • Tools
        • CLI Install
      • Troubleshooting
      • Using Packages
      • Using Runtime
    • Contribution Guide
  • Learning
    • Asset Compute Worker PS API
      • Requirements
      • Lesson 1: Create an app from Asset Compute template
      • Lesson 2: Configure the app
      • Lesson 3: Develop worker calling Photoshop API
      • Lesson 4: Integrate worker in AEMaaCS
      • Well done
    • Barcode Reader
      • Requirements
      • Lesson 1: Bootstrap a Headless App
      • Lesson 2: Writing a Serverless Action
      • Lesson 3: Unit and E2E Tests
      • Well done
    • Blog Articles
      • Blog Articles
    • CI/CD
      • Requirements
      • Lesson 1: Setup CI/CD
      • Lesson 2: Monitoring CI/CD
      • Lesson 3: Custom CI/CD workflow
      • Well done
    • Cron Jobs
      • Requirements
      • Lesson 1: Bootstrap a Headless App
      • Lesson 2: Set up Alarm Feed with Trigger and Rule
      • Lesson 3: Types of Alarm Feed
      • Well done
    • Custom Asset Compute Worker
      • Requirements
      • How AEM as Cloud assets works
      • Architecture of our worker
      • Configure services
      • Local environment setup
      • Implement the worker
      • Test the worker
      • Setup AEM to use the worker
      • Well Done
    • Customer Dashboard
      • Requirements
      • Lesson 1: Create a New App Builder App from Campaign Standard Template
      • Lesson 2: Explore the App Builder App
      • Lesson 3: Run the App Builder App Locally
      • Lesson 4: List All Customer Profiles on the UI
      • Lesson 5: Add Personalized Promotion Emails Triggering
      • Well Done
    • Debugging
      • Requirements
      • Lesson 1: Getting familiar with Debugger
      • Lesson 2: Debugging Application Code
      • Lesson 3: Managing Application Logs
      • Well Done
    • Event Driven
      • Requirements
      • Lesson 1: Create a New App Builder App from Template
      • Lesson 2: Register the App as Event Provider
      • Lesson 3: Fire an Event
      • Lesson 4: Consume Events
      • Well Done
    • Events Runtime
      • Requirements
      • Lesson 1: Step by Step Guide
      • Lesson 2: Verify the result
      • Well done
    • Journaling Events
      • Requirements
      • Lesson 1: Create an Event Provider using App Builder
      • Lesson 2: Create the Event Consumer using Journaling API
      • Lesson 3: End to end test
      • Well done
    • Sample Apps
      • Code Snippets
        • Caching HTTP responses
        • App Builder Files SDK
        • App Builder State SDK
        • I/O Events handler
        • Real-time data from Adobe Analytics API 1.4
    • Spectrum Introduction
      • Lesson 1: What is Spectrum ?
      • Lesson 2: Using Spectrum CSS
      • Lesson 3: Using React Spectrum
      • Lesson 4: Using React Spectrum in App Builder
      • Well done
    • Todo App
      • Requirements
      • Lesson 1: Create a New App Builder App with the React Spectrum template
      • Lesson 2: Setup Runtime actions
      • Lesson 3: Setup the CreateTodoList component
      • Lesson 4: Setup the Todo component
      • Lesson 5: Setup the TodoList component
      • Lesson 6: Bringing the pieces together to build the App
      • Well done
    • Videos
      • Overview
        • Introducing App Builder
        • Getting Started
        • Architecture
        • A Full Security Overview
        • User Journey
      • Exploring
        • Projects and Workspaces
        • React Spectrum
        • Custom Events
        • CI/CD
        • Debugging
        • Learning Resources
        • Dashboard Case Study
        • ODE Case Study
        • Deep Dive Use Cases
        • Live Wired Sneak
        • Softcrylic Partner Showcase
      • Developers Live
        • App Builder Deep Dive
        • Asset Compute Service Extensibility
        • Extend Adobe Experience Cloud
  1. Products
  2. Overview
  3. Guides
  4. Develop
  5. App Builder Guides
  6. Application Logging
  7. Splunk Enterprise

Forwarding Logs to Splunk Enterprise

This guide covers configuration of App Builder applications to forward logs to your Splunk Enterprise deployment.

Prerequisites

  1. An index on your Splunk Enterprise instance. Create a new index following Splunk's guide.
  2. Local development setup for your App Builder application
  3. The latest version of AIO CLI. Check by running aio --version; update by running npm install -g @adobe/aio-cli

Steps to configure log forwarding

1. Set up Splunk HTTP event collector

  1. Go to your Splunk home and select select Settings from the ribbon and Data Inputs on the Settings pane

  2. Click the + Add New button corresponding to the HTTP Event Collector input type

  3. On the Select Source screen:

    1. Type in an input name. For example: My App Builder Application
    2. Ensure that the Enable Indexer Acknowledgment checkbox is not ticked.
    3. Click the Next button on top.
  4. On the Input Settings screen:

    • Set the source type to automatic. Forwarded logs will be sent with the sourcetype field set to _json
    • From the list of indexes, select only the index on which you wish to receive logs from your App Builder application
    • Click the Review button on top.
  5. On the Done screen:

    • Copy the token value for later use.

2. Get your Splunk host and port

  1. To find your hostname and port number, follow the procedures in Send data to HTTP Event Collector on Splunk Enterprise from Splunk documentation.

  2. Confirm your hostname and port number by executing this cURL request, using the token saved when you set up the Splunk HTTP event collector:

      curl -X POST 'https://<hostname>:<port>/services/collector' \     
    -H "Authorization: Splunk <token>" \
    -d '{"event": "hello world"}'
    

    A 200 OK response confirms your hostname and port. Note that I/O Runtime supports only ports 443 and 8088 for port forwarding.

    3. Set up log forwarding in App Builder

    1. Open Terminal and navigate to the App Builder project directory on your local machine.

    2. Run this command, supplying the values from previous steps:

       aio app config set log-forwarding
    ? select log forwarding destination: Splunk HEC
    ? host: <hostname>
    ? port: <port_number>
    ? index: <index>
    ? hec_token: <token>
    

    Note:

    • Be sure not to prefix the protocol (http:// or https://) before the hostname
    • Use the hostname and port as determined in "Get Splunk host and port" above
    • Use the token value token saved when you set up the Splunk HTTP event collector
  3. Verify that the configuration change has taken place:

    aio app config get log-forwarding
    
  4. Execute an action in your App Builder application workspace to generate logs.

  5. Go to Splunk Home > Search and run the query

    index=<index>
    
  6. If you don't see any logs in Splunk, check for log forwarding errors:

    aio app config get log-forwarding errors
    

    Next steps

    If you are unable to set up log forwarding using these procedures, please visit Adobe Experience Leage App Builder Community for support.

    Proceed to Forwarding logs to Splunk Cloud.

    Return to Managing Application Logs.

    Return to Guides Index.