When you use the REST API, use the splunkd management port, 8089, and the secure HTTPS protocol.
Send GET requests again to verify that you deleted sampleMessage. The Uniform Resource Locator (URL) addressing defined as part of the HTTP protocol maps to Splunk platform resources identified by their Uniform Resource Identifier (URI).įor example, a request to the following URL will return a list of applications installed on your server: Your browser uses the same protocol, so you can use it to send API requests to the server. This REST API implementation accesses domain resources with corresponding endpoints, using the HTTP protocol. The API conforms to the Representational State Transfer (REST) architectural style. Each collection has some combination of resources and other collections. A resource is a single, named, object stored by splunkd, such as a job, a TCP raw input, or a saved search. The API is organized around object and configuration resources.
To see additional tutorials, including how to use the Splunk platform REST API with Splunk Cloud Platform, see the REST API Tutorials Manual API functions and organizationĪPI functions allow you to either run searches, or manage objects and configuration. To see a list of available endpoints and operations for accessing, creating, updating, or deleting resources, see the REST API Reference Manual.
The Splunk platform REST API gives you access to the same information and functionality available to core system software and Splunk Web.
Sudo ACCEPT_EULA=Y zypper install mssql-toolsĮcho 'export PATH="$PATH:/opt/mssql-tools/bin"' > ~/.Basic concepts about the Splunk platform REST API Sudo ACCEPT_EULA=Y zypper install msodbcsql Sudo ACCEPT_EULA=Y yum install mssql-tools Sudo ACCEPT_EULA=Y apt-get install mssql-tools Sudo ACCEPT_EULA=Y apt-get install msodbcsql
The following sections explain how to install the Microsoft ODBC driver 13.1 from the bash shell for different Linux distributions.
Sudo ACCEPT_EULA=Y zypper install -y msodbcsql17 SUSEConnect -p sle-module-legacy/15/x86_64 #Ensure SUSE Linux Enterprise 11 Security Module has been installed Sudo ACCEPT_EULA=Y yum install -y mssql-tools Sudo ACCEPT_EULA=Y yum install -y msodbcsql17 Sudo yum remove unixODBC-utf16 unixODBC-utf16-devel #to avoid conflicts #Red Hat Enterprise Server 8 and Oracle Linux 8
#Red Hat Enterprise Server 7 and Oracle Linux 7 #Red Hat Enterprise Server 6 (only supported up to driver version 17.7)Ĭurl > /etc//mssql-release.repo You can substitute setting the environment variable 'ACCEPT_EULA' with setting the debconf variable 'msodbcsql/ACCEPT_EULA' instead: echo msodbcsql17 msodbcsql/ACCEPT_EULA boolean true | sudo debconf-set-selections Red Hat Enterprise Server and Oracle Linux sudo su # optional: kerberos library for debian-slim distributions # optional: for unixODBC development headers Sudo ACCEPT_EULA=Y apt-get install -y mssql-toolsĮcho 'export PATH="$PATH:/opt/mssql-tools/bin"' > ~/.bashrc Sudo ACCEPT_EULA=Y apt-get install -y msodbcsql17 #Debian 8 (only supported up to driver version 17.6)Ĭurl > /etc/apt//mssql-release.list #Choose only ONE of the following, corresponding to your OS version #Download appropriate package for the OS version
Sudo apk add -allow-untrusted mssql-tools_17.8.1.1-1_amd64.apkĭriver version 17.5 or higher is required for Alpine support. Sudo apk add -allow-untrusted msodbcsql17_17.8.1.1-1_amd64.apk #(Optional) Verify signature, if 'gpg' is missing install it using 'apk add gnupg': Alpine Linux #Download the desired package(s) The msodbcsql17 package can be installed side by side with the msodbcsql v13 package. If you installed the v17 msodbcsql package that was briefly available, you should remove it before installing the msodbcsql17 package.