I usually use "dbxquery" but it only works in the search app. I'm trying to export data from a database through Splunk SDK, so I'd like to know if there's an alternative command for the same purpose.
I solved it, my mistake was that the query originally included a lot of quotations, so I added a config file where I wrote all the queries, then imported it to the script with this:
https://docs.python.org/2/library/xml.etree.elementtree.html
So, it's mostly a Python issue not a Splunk issue.
I solved it, my mistake was that the query originally included a lot of quotations, so I added a config file where I wrote all the queries, then imported it to the script with this:
https://docs.python.org/2/library/xml.etree.elementtree.html
So, it's mostly a Python issue not a Splunk issue.