top of page
Search

Dataflect | dfsearch Examples

Below are some interesting examples showing the unique capabilities of the Dataflect dfsearch command.


These examples, while perhaps not practical for most IT professionals, demonstrate how easy it is to build upon Dataflect's capabilities to create compelling use cases.


Dashboard to Get Current Cryptocurrency Metrics in Splunk®


This dashboard is composed of a dropdown which queries the coincap.io API to gather all available cryptocurrencies, and a subsequent panel that shows metrics related to the selected cryptocurrency


Splunk cryptocurrency

| dfsearch url=https://rest.coincap.io/v3/assets credential=coincap headers="{'accept': 'application/json'}" | table id name

Splunk cryptocurrency

| dfsearch url=https://rest.coincap.io/v3/assets/$slug$ credential=coincap headers="{'accept': 'application/json'}" | table symbol name rank supply maxSupply marketCapUsd volumeUsd24Hr priceUsd changePercent24Hr vwap24Hr

Splunk® a Random Fact!


| dfsearch url="https://uselessfacts.jsph.pl/api/v2/facts/random"
Splunk a Random Fact

That's a lot of cereal!!


Splunk® to Get Your IP Address


| dfsearch url=icanhazip.com
Splunk get my IP Address


Splunk St Louis Fed Data


This dashboard leverages two API calls to the St Louis Fed API to allow users to select a Category and Series, along with a time range, and then plots the selected series in a linechart.


Splunk St Louis Fed Data

| dfsearch url="https://api.stlouisfed.org/fred/category/children" parameters="category_id=0&api_key=<<>>" credential="st_louis_fed" containing_field=categories | stats count by category | spath input=category | rename @* as * | table id name

Splunk St Louis Fed Data

| dfsearch url="https://api.stlouisfed.org/fred/category/series" parameters="category_id=$category$&api_key=<<>>" credential="st_louis_fed" containing_field=seriess | stats count by series | spath input=series | rename @* as * | table id title

Splunk St Louis Fed Data - Unemployment Rate

| dfsearch url="https://api.stlouisfed.org/fred/series/observations" parameters="series_id=$series$&api_key=<<>>&observation_start=$earliest_strf$&observation_end=$latest_strf$&file_type=json&limit=100000" credential="st_louis_fed" containing_field=observations timestamp_field=date timestamp_strf="%Y-%m-%d" | timechart span=1mon avg(value) as $series_label|s$


Hopefully these examples help to get the creative juices flowing, we're excited to see what types of real world use cases you implement with Dataflect!


If we can help you work through an integration or if you have any questions, please reach out to us at sales@dataflect.com.

 
 

Dataflect LLC

Denver, CO

USA

Dataflect LLC is in no way associated with Splunk, Inc. or any of its affiliates.

Splunk, Splunk>, and Turn Data Into Doing are trademarks or registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners. © 2025 Splunk Inc. All rights reserved.

© 2025 Dataflect LLC

bottom of page