<?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 Syntactical Error in WQL in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694529#M115408</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;I am currently using Splunk UF 7.2 on a Windows Server, and my UF is configured on D Drive.&lt;/P&gt;&lt;P&gt;I am getting below error message in splunkd.log:&lt;/P&gt;&lt;P&gt;07-29-2024 09:07:25.343 +0100 ERROR ExecProcessor -message from ""D:\Program Files\SplunkUniversalForwarder\bin\splunk-wmi.exe"" WMI - Error occurred while trying to retrieve results from a WMI query (error="Query was not syntactically valid." HRESULT=80041017) (root\cimv2: Win32_Service | SELECT Name, Caption, State, Status, StartMode, StartName, PathName Description)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;07-29-2024 09:07:25.343 +0100 ERROR ExecProcessor - message from ""D:\Program Files\SplunkUniversalForwarder\bin\splunk-wmi.exe"" WMI - Error occurred while trying to retrieve results from a WMI query (error="Query was not syntactically valid." HRESULT=80041017) (root\cimv2: Win32_PerfFormattedData_PerfProc_Process | SELECT Name, PSComputerName, WorkingSetPrivate, IDProcess, PercentProcessorTime)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SPLUNK_HOME\etc\system\local\&lt;/P&gt;&lt;P&gt;inputs.conf:&lt;/P&gt;&lt;P&gt;[default]&lt;BR /&gt;host = &amp;lt;hostname&amp;gt;&lt;/P&gt;&lt;P&gt;[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wmi.conf:&lt;/P&gt;&lt;P&gt;[settings]&lt;BR /&gt;initial_backoff = 5&lt;BR /&gt;max_backoff = 20&lt;BR /&gt;max_retries_at_max_backoff = 2&lt;BR /&gt;checkpoint_sync_interval = 2&lt;/P&gt;&lt;P&gt;[WMI:LocalProcesses]&lt;BR /&gt;interval = 20&lt;BR /&gt;wql = Win32_PerfFormattedData_PerfProc_Process | SELECT Name, PSComputerName, WorkingSetPrivate, IDProcess, PercentProcessorTime&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;[WMI:Service]&lt;BR /&gt;interval = 86400&lt;BR /&gt;wql = Win32_Service | SELECT Name, Caption, State, Status, StartMode, StartName, PathName Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;BR /&gt;I am not using Splunk Add On For Windows.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 08:13:46 GMT</pubDate>
    <dc:creator>sarvesh_11</dc:creator>
    <dc:date>2024-07-29T08:13:46Z</dc:date>
    <item>
      <title>Syntactical Error in WQL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694529#M115408</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I am currently using Splunk UF 7.2 on a Windows Server, and my UF is configured on D Drive.&lt;/P&gt;&lt;P&gt;I am getting below error message in splunkd.log:&lt;/P&gt;&lt;P&gt;07-29-2024 09:07:25.343 +0100 ERROR ExecProcessor -message from ""D:\Program Files\SplunkUniversalForwarder\bin\splunk-wmi.exe"" WMI - Error occurred while trying to retrieve results from a WMI query (error="Query was not syntactically valid." HRESULT=80041017) (root\cimv2: Win32_Service | SELECT Name, Caption, State, Status, StartMode, StartName, PathName Description)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;07-29-2024 09:07:25.343 +0100 ERROR ExecProcessor - message from ""D:\Program Files\SplunkUniversalForwarder\bin\splunk-wmi.exe"" WMI - Error occurred while trying to retrieve results from a WMI query (error="Query was not syntactically valid." HRESULT=80041017) (root\cimv2: Win32_PerfFormattedData_PerfProc_Process | SELECT Name, PSComputerName, WorkingSetPrivate, IDProcess, PercentProcessorTime)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$SPLUNK_HOME\etc\system\local\&lt;/P&gt;&lt;P&gt;inputs.conf:&lt;/P&gt;&lt;P&gt;[default]&lt;BR /&gt;host = &amp;lt;hostname&amp;gt;&lt;/P&gt;&lt;P&gt;[script://$SPLUNK_HOME\bin\scripts\splunk-wmi.path]&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;wmi.conf:&lt;/P&gt;&lt;P&gt;[settings]&lt;BR /&gt;initial_backoff = 5&lt;BR /&gt;max_backoff = 20&lt;BR /&gt;max_retries_at_max_backoff = 2&lt;BR /&gt;checkpoint_sync_interval = 2&lt;/P&gt;&lt;P&gt;[WMI:LocalProcesses]&lt;BR /&gt;interval = 20&lt;BR /&gt;wql = Win32_PerfFormattedData_PerfProc_Process | SELECT Name, PSComputerName, WorkingSetPrivate, IDProcess, PercentProcessorTime&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;[WMI:Service]&lt;BR /&gt;interval = 86400&lt;BR /&gt;wql = Win32_Service | SELECT Name, Caption, State, Status, StartMode, StartName, PathName Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please help?&lt;BR /&gt;I am not using Splunk Add On For Windows.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 08:13:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694529#M115408</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2024-07-29T08:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: Syntactical Error in WQL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694540#M115413</link>
      <description>&lt;P&gt;The error says it all. The &lt;EM&gt;wql&lt;/EM&gt; parameter needs a valid WQL query to retrieve the data. Yours is not a proper WQL query.&lt;/P&gt;&lt;P&gt;BTW, why are you using WMI? This is one of the worst ways of getting data from Windows.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:20:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694540#M115413</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-29T10:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Syntactical Error in WQL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694546#M115415</link>
      <description>&lt;P&gt;I tried with the WQL that is there in Splunk App for Windows default. It is giving the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am using WMI because I want to fetch the near real time resource consumption wrt services running on windows. That information is not coming via Perfmon.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694546#M115415</guid>
      <dc:creator>sarvesh_11</dc:creator>
      <dc:date>2024-07-29T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Syntactical Error in WQL</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694548#M115417</link>
      <description>&lt;P&gt;You can use a tool like &lt;A href="https://www.nirsoft.net/utils/simple_wmi_view.html" target="_blank"&gt;https://www.nirsoft.net/utils/simple_wmi_view.html&lt;/A&gt; to verify your WQL.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 10:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Syntactical-Error-in-WQL/m-p/694548#M115417</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-07-29T10:47:47Z</dc:date>
    </item>
  </channel>
</rss>

