UPDATE: I've gotten past the cors issue by adding the following to the settings stanza in yoursplunkdir/etc/system/local/web.conf: crossOriginSharingPolicy = http://localhost:3000 crossOriginSharingHeaders = x-requested-with,x-splunk-form-key Now I'm getting a json error: index.js:1 failed to create search job: SyntaxError: Unexpected token < in JSON at position 0 This is the definition file: const definition = { dataSources: { ds_GHKftNxx: { type: 'ds.search', options: { queryParameters: { earliest: '@y', latest: 'now' }, query: 'index=_internal | stats count' }, name: 'Search_1' } }, inputs: {}, layout: { type: 'absolute', options: { width: 1164, height: 824, display: 'auto-scale', backgroundColor: 'transparent' }, structure: [ { item: 'viz_2rArKe2X', type: 'block', position: { h: 230, w: 280, x: 20, y: 20 } } ] }, title: 'Buttercup Games', description: '', visualizations: { viz_2rArKe2X: { type: 'viz.singlevalue', title: 'Single Value Example with ds.search', options: { backgroundColor: '#53a051' }, dataSources: { primary: 'ds_GHKftNxx' } } } }; export default definition;
... View more