Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

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

    • Red Hat Hardened Images: Top 5 benefits for software developers

    • How EvalHub manages two-layer Kubernetes control planes

    • Tekton joins the CNCF as an incubating project

    • Federated identity across the hybrid cloud using zero trust workload identity manager

    • Confidential virtual machine storage attack scenarios

    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
    © 2026 Red Hat

    Red Hat legal and privacy links

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

    Chat Support

    Please log in with your Red Hat account to access chat support.