Skip to main content
Redhat Developers  Logo
  • Products

    Platforms

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat AI
      Red Hat AI
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • See all Red Hat products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat Developer Hub
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat OpenShift Local
    • Red Hat Developer Sandbox

      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Red Hat OpenShift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • See all technologies
    • Programming languages & frameworks

      • Java
      • Python
      • JavaScript
    • System design & architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer experience

      • Productivity
      • Tools
      • GitOps
    • Automated data processing

      • AI/ML
      • Data science
      • Apache Kafka on Kubernetes
    • Platform engineering

      • DevOps
      • DevSecOps
      • Red Hat Ansible Automation Platform for applications and services
    • Secure development & architectures

      • Security
      • Secure coding
  • Learn

    Featured

    • Kubernetes & cloud native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • AI/ML
      AI/ML Icon
    • See all learning resources

    E-books

    • GitOps cookbook
    • Podman in action
    • Kubernetes operators
    • The path to GitOps
    • See all e-books

    Cheat sheets

    • Linux commands
    • Bash commands
    • Git
    • systemd commands
    • See all cheat sheets

    Documentation

    • Product documentation
    • API catalog
    • Legacy documentation
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore the Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

Gain visibility into Red Hat Quay with Splunk

January 8, 2026
Shane Snyder
Related topics:
ContainersKubernetesObservability
Related products:
Red Hat OpenShiftRed Hat Quay

    Red Hat Quay access logs help you gain visibility into the images pulled or pushed in Red Hat Quay. You can also see the time of deletion or creation of an organization or repository. These are provided by default within the Red Hat Quay UI at both an organization and repository level and are available globally within the super user admin panel. However, these logs are only stored for 30 days. If users want to gain long term visibility, they can forward these logs to Splunk.

    This article demonstrates how to forward Red Hat Quay access logs to Splunk using a Splunk HEC token. Additionally, you’ll learn how we use Splunk queries to build out a dashboard to track all the activity happening within Red Hat Quay. We’ll configure the forwarding using the Red Hat Quay operator within Red Hat OpenShift.

    Configuring the log forwarding

    This section outlines how to configure the forwarding of the Red Hat Quay access logs to Splunk. Note that when forwarding the access logs, you will no longer be able to view them in the Red Hat Quay UI.  

    To enable forwarding, you must have the following prerequisites:

    • OpenShift cluster with the Red Hat Quay operator installed.
    • An available Splunk instance with an HTTP Event Collector (HEC) token and index for forwarding.

    Prior to configuring this, you need to know which index you'll be forwarding to in Splunk as well as the splunk_host and splunk_sourcetype fields you’d like to utilize. In my example, I will specify splunk_host as quay-sno and splunk_sourcetype and quay_logs. However, if you have multiple Red Hat Quay environments, we recommend utilizing environment-specific values for each of these to decipher the actions performed in each environment.

    To configure the forwarding of the access logs to Splunk, we’ll need to modify the config.yaml for Red Hat Quay. Generally, this is stored in the config-bundle-secret secret. You can verify the exact secret for this configuration by viewing the spec.configBundleSecret value of your QuayRegistry custom resource.

    Export the config.yaml from the Quay config-bundle-secret secret.

    oc get secret config-bundle-secret -n quay-enterprise -o jsonpath='{.data.config\.yaml}' | base64 --decode > config.yaml

    Modify the config.yaml to forward the usage logs to Splunk and replace the following necessary values.

    LOGS_MODEL: splunk
    LOGS_MODEL_CONFIG:
      producer: splunk_hec 
      splunk_hec_config: 
        host: prd-p-aaaaaq.splunkcloud.com 
        port: 8088 
        hec_token: 12345678-1234-1234-1234-1234567890ab 
        url_scheme: https 
        verify_ssl: False 
        index: quay
        splunk_host: quay-sno
        splunk_sourcetype: quay_logs

    Apply the updated config.yaml to the config-bundle-secret secret.

    oc set data secret/config-bundle-secret -n quay-enterprise --from-file=config.yaml

    You can find the official documentation in the Red Hat Quay docs.

    Verify log forwarding

    When the config-bundle-secret secret has been updated, Red Hat Quay will rollout new app pods. First, you should verify that new pods started correctly. You can also view the usage logs of any organization or repository within Quay. Since this configuration disables usage logs within Quay, you should see the message, “Method not implemented, Splunk does not support log lookups” on any access log page inside of Quay. 

    As a simple test, you can also create a dummy repository or organization and simply search for the splunk_host index and splunk_sourcetype within Splunk to verify you are receiving the access logs.

    Gaining insight through Splunk

    The following queries define the index and source_type. You should adjust these based on the configuration you used on the config.yaml to forward to your Splunk instance.

    Organization creation and deletion

    This query will show creation and deletion of any Red Hat Quay organization as well as the performer of this operation (Figure 1).

    index="quay" sourcetype="quay_logs" (kind="org_create" OR kind="org_delete")
    | eval Action = if(kind=="org_create", "Created", "Deleted")
    | rename metadata_json.namespace AS "Organization Name", performer AS "Performer"
    | table _time, Action, "Organization Name", "Performer"
    | sort -_time
    This log for Splunk query results shows the creation and deletion of an organization.
    Figure 1: These Splunk query results show the creation and deletion of an organization, who performed the action, and when.

    Repository creation and deletion

    This query will show the creation and deletion of any Red Hat Quay repository as well as the performer of this operation (Figure 2).

    index="quay" sourcetype="quay_logs" (kind="create_repo" OR kind="delete_repo")
    | eval Action = if(kind=="create_repo", "Created", "Deleted")
    | rename account AS "Organization", metadata_json.repo AS "Repository Name", performer AS "Performer"
    | table _time, Action, "Organization", "Repository Name", "Performer"
    | sort -_time
    The Splunk query results show the creation and deletion of a repository.
    Figure 2: The Splunk query results show the creation and deletion of a repository, who performed the action, and when.

    Image pulls

    This query creates a report that shows the last time each unique image tag from your Quay repository and who pulled it (Figure 3).

    index="quay" sourcetype="quay_logs" kind="pull_repo"
    | stats max(_time) as last_event_epoch, latest(performer) as performer by metadata_json.namespace, metadata_json.repo, metadata_json.tag
    | eval "Last Activity" = strftime(last_event_epoch, "%Y-%m-%d %H:%M:%S")
    | fields - last_event_epoch
    | rename metadata_json.namespace AS namespace, metadata_json.repo AS repository, metadata_json.tag AS tag
    | sort -"Last Activity"
    Splunk query results show the last time an image tag was pulled and by whom.
    Figure 3: These Splunk query results show the last time an image tag was pulled and by whom.

    The next query will show us the number of image pulls per day (Figure 4).

    index="quay" sourcetype="quay_logs" kind="pull_repo"
    | timechart span=1d count AS "Number of Pulls"
    Splunk query results show the number of image pulls per day.
    Figure 4: Splunk query results show the number of image pulls per day.

    Image pushes

    This query creates a report that shows the last time each unique image tag pushed to your Quay repository and who pushed it.

    index="quay" sourcetype="quay_logs" kind="push_repo"
    | stats max(_time) as last_event_epoch, latest(performer) as performer by metadata_json.namespace, metadata_json.repo, metadata_json.tag
    | eval "Last Activity" = strftime(last_event_epoch, "%Y-%m-%d %H:%M:%S")
    | fields - last_event_epoch
    | rename metadata_json.namespace AS namespace, metadata_json.repo AS repository, metadata_json.tag AS tag
    | sort -"Last Activity"
    Splunk query results show the last time an image tag was pushed and by whom.
    Figure 5: Splunk query results show the last time an image tag was pushed and by whom.

    The next query will show us the number of image pushes per day (Figure 6).

    index="quay" sourcetype="quay_logs" kind="push_repo"
    | timechart span=1d count AS "Number of Pushes"
    A bar graph of Splunk query results show the number of image pushes per day.
    Figure 6: The Splunk query results show the number of image pushes per day.

    Combining pushes and pulls

    This query creates a report that shows the last time each unique image tag was either pushed or pulled to your Quay repository and who performed the action (Figure 7).

    index="quay" sourcetype="quay_logs" (kind="push_repo" OR kind="pull_repo")
    | stats
        count(eval(kind="push_repo")) as "Total Pushes",
        max(eval(if(kind="push_repo", _time, null()))) as last_push_epoch,
        values(eval(if(kind="push_repo", performer, null()))) as "Push Performers",
        count(eval(if(kind="pull_repo", _time, null()))) as "Total Pulls",
        max(eval(if(kind="pull_repo", _time, null()))) as last_pull_epoch,
        values(eval(if(kind="pull_repo", performer, null()))) as "Pull Performers"
      by metadata_json.namespace, metadata_json.repo
    | eval "Last Push" = strftime(last_push_epoch, "%Y-%m-%d %H:%M:%S")
    | eval "Last Pull" = strftime(last_pull_epoch, "%Y-%m-%d %H:%M:%S")
    | rename metadata_json.namespace AS namespace, metadata_json.repo AS repository
    | table namespace, repository, "Total Pushes", "Push Performers", "Last Push", "Total Pulls", "Pull Performers", "Last Pull"
    | sort -namespace, -"Total Pushes"
    Splunk query results show the total number of pulls and pushes.
    Figure 7: The Splunk query results show the total number of pulls and pushes along with the last time they were pushed or pulled.

    Tying it all together

    These individual Splunk queries are the essential building blocks to gain visibility into your Red Hat Quay registry. However, to effectively monitor your registry, you should combine these into a single, comprehensive dashboard. This gives you a powerful way to track all the critical activity in your Red Hat Quay registry. Most importantly, it allows you to historically track your registry without the 30-day log limit in the Quay UI, giving you the long-term visibility you need for effective security and auditing to understand how your registry is truly being used.

    You can find a sample of the classic Splunk dashboard in Figure 8 on GitHub. However, you will need to modify this to use your index and sourcetypes.

    The Splunk dashboard shows the consolidation of these queries on a single window.
    Figure 8: The Splunk dashboard shows the consolidation of all queries in a single window.

    Wrap up

    This article provided a step-by-step guide on how to forward Red Hat Quay container registry access logs to Splunk to achieve long-term visibility. By configuring the Red Hat Quay operator in OpenShift with a Splunk HEC token and modifying the config.yaml, users can ensure continuous data flow for auditing and security. 

    We also demonstrated various Splunk queries to track critical activity such as repository and organization creation/deletion and image pulls and pushes, ultimately recommending the consolidation of these queries into a single dashboard for comprehensive, historical monitoring of the Red Hat Quay registry.

    Related Posts

    • How to use Red Hat Quay as a proxy cache

    • How to find vulnerabilities across millions of Quay.io images

    • How to use Splunk as an event source for Event-Driven Ansible

    • How to forward OpenShift logs to Azure Monitor

    Recent Posts

    • Building effective AI agents with Model Context Protocol (MCP)

    • Kafka Monthly Digest: December 2025

    • Gain visibility into Red Hat Quay with Splunk

    • Our top articles for developers in 2025

    • Manage AI-powered inventory with Red Hat Lightspeed MCP

    What’s up next?

    Share graphics_OpenShift command line essentials.png

    OpenShift command line essentials cheat sheet

    Don Schenck
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2025 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue