Skip to main content


Splunk Lantern

Payment request and response counts over time

You might want to graph counts of payment requests and responses over time when doing the following:


In order to execute this procedure in your environment, the following data, services, or apps are required:


Counts of payment requests and responses over time shows how your systems are performing. Tracking this statistic allows you to gather insights on treating your best customers to better service.

To optimize the search shown below, you should specify a time range.  You may also need to adjust fields to match what is available in your data source. 

  1. Run the following search:
    |sourcetype=<payment processing data>
    |eval _time=strptime(_time, "%Y/%m/%d %H:%M:%S")
    |sort _time
    |timechart count span=5m fixedrange=F

Search explanation

The table provides an explanation of what each part of this search achieves. You can adjust this query based on the specifics of your environment.

Splunk Search Explanation
|sourcetype=<payment processing data> Search only your payment processing data.
|eval _time=strptime(_time, "%Y/%m/%d %H:%M:%S") Parse the time stamp into a UNIX time value.
|sort _time Sort the results from oldest to newest.
|timechart count span=5m fixedrange=F Graph the counts over time in 5-minute increments, expanding the chart as needed to cover all events.


Add these results to a dashboard so you can monitor system performance. Decisions can then be made with this data to improve the payments response application.

  • Was this article helpful?