Splunk is an operational intelligence and data processing platform that offers a great log analysis. It’s a powerful engine that lets you monitor, search, investigate, visualize and report on what’s happening with your IT infrastructure in real time.
REST APIs are the way to go when it comes to data access in the enterprise environments. But it’s not easy to bring data from REST APIs into Splunk in order to combine it with machine data in Splunk to drive deeper levels of analysis and operational intelligence. With Progress DataDirect Autonomous REST Connector, we can easily connect to any REST API and query our data using SQL. It normalizes REST data and makes them available as relational tables. With Splunk’s DB Connect and Progress Autonomous REST Connector we can bring in data to Splunk from any REST API.
In this tutorial, we will walk through how to get data into Splunk from a REST API using DataDirect Autonomous REST Connector. We will connect to Alpha Vantage REST API, which provides real-time stock information. Let’s get started.
Make sure you have following installed and configured properly before beginning the tutorial.
C:\Program Files\Progress\DataDirect\JDBC_60\lib\autorest.jar
C:\Program Files\Progress\DataDirect\JDBC_60\lib\autorest. jar
C:\Program Files\Splunk\etc\apps\splunk_app_db_connect\drivers
C:\Program Files\Splunk\etc\apps\splunk_app_db_connect\local
[datadirect_autorest]
displayName = Progress DataDirect Autonomous REST Connector
serviceClass = com.splunk.dbx2.DefaultDBX2JDBC
jdbcDriverClass = com.ddtek.jdbc.autorest.AutoRESTDriver
supportedVersions = 1.0
jdbcUrlFormat = jdbc:datadirect:autorest:sample=http://api.example.com/data;
jdbc:datadirect:autorest:sample=
"https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=5min&outputsize=full"
;AuthenticationMethod=UrlParameter;authparam=apikey;securitytoken=
"Your API Key"
You can use Progress DataDirect Autonomous REST Connector to connect to any REST API in your enterprise applications and make the data available in Splunk. Feel free to download Progress Autonomous REST Connector and try it out in your environment. If you have any questions please contact us and we will be happy to help you.