<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Why won't my dataset literals parse? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589122#M205168</link>
    <description>&lt;P&gt;Thanks for that.&amp;nbsp; I now understand the reference to SPL2.&lt;/P&gt;&lt;P&gt;Splunk is bad at naming products and services.&amp;nbsp; "Splunk Cloud Services" (SCS) is not the same as "Splunk Cloud Platform" (SC) and has different documentation.&lt;/P&gt;&lt;P&gt;Let's back up to the beginning.&amp;nbsp; What Splunk product are you using?&amp;nbsp; If it's a cloud service, what URL are you using (omit your company name from it)?&lt;/P&gt;&lt;P&gt;The error message reported leads me to believe you're trying to use SCS features in Splunk Cloud.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 14:59:13 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-03-15T14:59:13Z</dc:date>
    <item>
      <title>Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/588989#M205115</link>
      <description>&lt;P&gt;In the documentation on dataset literals there is an example query:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;FROM
[
{ state: "Washington", abbreviation: "WA", population: 7535591 },
{ state: "California", abbreviation: "CA", population: 39557045 },
{ state: "Oregon", abbreviation: "OR", population: 4190714 }
]
WHERE population &amp;gt; 5000000 SELECT state&lt;/LI-CODE&gt;
&lt;P&gt;If I try to run this or any other query with a dataset literal I get an error:&lt;/P&gt;
&lt;P&gt;Error in 'SearchParser': Missing a search command before '{'. Error at position '26' of search query 'search FROM [ { state: "Washington", a'.&lt;/P&gt;
&lt;P&gt;Any idea why? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 21:52:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/588989#M205115</guid>
      <dc:creator>Bennette</dc:creator>
      <dc:date>2022-03-14T21:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/588997#M205120</link>
      <description>&lt;P&gt;The &lt;FONT face="courier new,courier"&gt;from&lt;/FONT&gt; command must be preceded by a pipe (&lt;FONT face="courier new,courier"&gt;|&lt;/FONT&gt;) character even when it's the first command in the query.&lt;/P&gt;&lt;P&gt;The error doesn't say that because Splunk is trying to run what it thinks is a subsearch (the part within &lt;FONT face="courier new,courier"&gt;[]&lt;/FONT&gt;) first.&amp;nbsp; A leading &lt;FONT face="courier new,courier"&gt;|&lt;/FONT&gt; will change that.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 00:26:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/588997#M205120</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-15T00:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589098#M205157</link>
      <description>&lt;P&gt;I wish it were that simple - that's just the sort of thing I might have missed.&amp;nbsp; But in this case, even after adding the pipe, I still get the same error.&amp;nbsp; This is being run in splunkcloud rather than on-prem.&amp;nbsp; I'm new enough at this so as not to appreciate the difference, or even know if splunkcloud uses SPL or SPL2.&amp;nbsp; Could that explain this behavior?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 13:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589098#M205157</guid>
      <dc:creator>Bennette</dc:creator>
      <dc:date>2022-03-15T13:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589113#M205164</link>
      <description>&lt;P&gt;Only the Dashboard Studio uses SPL2, so far, both on-prem and in Cloud.&lt;/P&gt;&lt;P&gt;Please cite the documentation where you found this text so we can put it in context.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:25:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589113#M205164</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-15T14:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589115#M205165</link>
      <description>&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/SCS/current/Search/Datasetliterals" target="_blank"&gt;https://docs.splunk.com/Documentation/SCS/current/Search/Datasetliterals&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:31:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589115#M205165</guid>
      <dc:creator>Bennette</dc:creator>
      <dc:date>2022-03-15T14:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589122#M205168</link>
      <description>&lt;P&gt;Thanks for that.&amp;nbsp; I now understand the reference to SPL2.&lt;/P&gt;&lt;P&gt;Splunk is bad at naming products and services.&amp;nbsp; "Splunk Cloud Services" (SCS) is not the same as "Splunk Cloud Platform" (SC) and has different documentation.&lt;/P&gt;&lt;P&gt;Let's back up to the beginning.&amp;nbsp; What Splunk product are you using?&amp;nbsp; If it's a cloud service, what URL are you using (omit your company name from it)?&lt;/P&gt;&lt;P&gt;The error message reported leads me to believe you're trying to use SCS features in Splunk Cloud.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589122#M205168</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-15T14:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589124#M205170</link>
      <description>&lt;P&gt;https://&amp;lt;redacted&amp;gt;.splunkcloud.com/en-US/app/....&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 15:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589124#M205170</guid>
      <dc:creator>Bennette</dc:creator>
      <dc:date>2022-03-15T15:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589126#M205172</link>
      <description>&lt;P&gt;You're using Splunk Cloud Platform.&amp;nbsp; Use the manuals at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud" target="_blank"&gt;https://docs.splunk.com/Documentation/SplunkCloud&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 15:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589126#M205172</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-03-15T15:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589132#M205173</link>
      <description>&lt;P&gt;So based on the documentation you referenced, it sounds as though dataset literals are simply not supported in SC.&amp;nbsp; That's too bad, because it offered a nice solution to my root problem, which involves which item from a static list is missing in the response from a subsearch.&amp;nbsp; I'll pose that question in a separate posting.&amp;nbsp; Thanks,&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 15:29:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/589132#M205173</guid>
      <dc:creator>Bennette</dc:creator>
      <dc:date>2022-03-15T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Why won't my dataset literals parse?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/659034#M227605</link>
      <description>&lt;P&gt;Did you ever find a solution to your problem? I'm trying to do something very similar.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 05:15:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-won-t-my-dataset-literals-parse/m-p/659034#M227605</guid>
      <dc:creator>trevorreed</dc:creator>
      <dc:date>2023-09-29T05:15:27Z</dc:date>
    </item>
  </channel>
</rss>

