Dataflect | dfsearch Examples
- Eric Jorgensen
- Jul 31
- 1 min read
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

| dfsearch url=https://rest.coincap.io/v3/assets credential=coincap headers="{'accept': 'application/json'}" | table id name
| 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 vwap24HrSplunk® a Random Fact!
| dfsearch url="https://uselessfacts.jsph.pl/api/v2/facts/random"
That's a lot of cereal!!
Splunk® to Get Your IP Address
| dfsearch url=icanhazip.com
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.

| 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
| 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
| 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.