<?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 Powershell modular input, Get-Process, some processes do not forward to splunk, possibly large values in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-modular-input-Get-Process-some-processes-do-not/m-p/383650#M69072</link>
    <description>&lt;P&gt;I'm monitoring a number of processes on a dozen or so Windows hosts. &lt;/P&gt;

&lt;P&gt;I've not written a script, the input is simply defined something like:&lt;/P&gt;

&lt;P&gt;Get-Process | Where-Object {$_.Name -like "vendor*.exe"}&lt;/P&gt;

&lt;P&gt;Assume the vendor executables all start with Vendor. This worked fine initially, I picked up 4 or 5 processes and got all the details for each process. This is admittedly a lot of information but I figured I'd rather gather too much at this time.&lt;/P&gt;

&lt;P&gt;As we started to use the application, some values like VirtualMemorySize started going up.&lt;/P&gt;

&lt;P&gt;Now, one of the processes with a large (almost 2 GB) value for VirtualMemorySize simply stopped appearing in Splunk. Others still work fine.&lt;/P&gt;

&lt;P&gt;When trying the exact same Get-Process | Where-Object {$_.Name -like "vendor*.exe"} on the Windows host in a Powershell command window, I get results for all the processes, including the one I'm missing in Splunk, I notice on the table view, some values are a bit mangled, presumeably because the values are large.&lt;/P&gt;

&lt;P&gt;I suspect somehow output where some values are large, they get dropped or are in some other way lost. I've not been able to pinpoint exactly what, but for example this Powershell Input works and picks up all processes:&lt;/P&gt;

&lt;P&gt;Get-Process | Where-Object {$_.Name -like "vendor*.exe"} | Select-Object Name,CPU&lt;/P&gt;

&lt;P&gt;But this does not&lt;BR /&gt;
Get-Process | Where-Object {$_.Name -like "vendor*.exe"} | Select-Object Name,CPU,VirtualMemorySize&lt;/P&gt;

&lt;P&gt;Anyone got any insight into this?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Nov 2018 14:00:17 GMT</pubDate>
    <dc:creator>cmorrall</dc:creator>
    <dc:date>2018-11-13T14:00:17Z</dc:date>
    <item>
      <title>Powershell modular input, Get-Process, some processes do not forward to splunk, possibly large values</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Powershell-modular-input-Get-Process-some-processes-do-not/m-p/383650#M69072</link>
      <description>&lt;P&gt;I'm monitoring a number of processes on a dozen or so Windows hosts. &lt;/P&gt;

&lt;P&gt;I've not written a script, the input is simply defined something like:&lt;/P&gt;

&lt;P&gt;Get-Process | Where-Object {$_.Name -like "vendor*.exe"}&lt;/P&gt;

&lt;P&gt;Assume the vendor executables all start with Vendor. This worked fine initially, I picked up 4 or 5 processes and got all the details for each process. This is admittedly a lot of information but I figured I'd rather gather too much at this time.&lt;/P&gt;

&lt;P&gt;As we started to use the application, some values like VirtualMemorySize started going up.&lt;/P&gt;

&lt;P&gt;Now, one of the processes with a large (almost 2 GB) value for VirtualMemorySize simply stopped appearing in Splunk. Others still work fine.&lt;/P&gt;

&lt;P&gt;When trying the exact same Get-Process | Where-Object {$_.Name -like "vendor*.exe"} on the Windows host in a Powershell command window, I get results for all the processes, including the one I'm missing in Splunk, I notice on the table view, some values are a bit mangled, presumeably because the values are large.&lt;/P&gt;

&lt;P&gt;I suspect somehow output where some values are large, they get dropped or are in some other way lost. I've not been able to pinpoint exactly what, but for example this Powershell Input works and picks up all processes:&lt;/P&gt;

&lt;P&gt;Get-Process | Where-Object {$_.Name -like "vendor*.exe"} | Select-Object Name,CPU&lt;/P&gt;

&lt;P&gt;But this does not&lt;BR /&gt;
Get-Process | Where-Object {$_.Name -like "vendor*.exe"} | Select-Object Name,CPU,VirtualMemorySize&lt;/P&gt;

&lt;P&gt;Anyone got any insight into this?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 14:00:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Powershell-modular-input-Get-Process-some-processes-do-not/m-p/383650#M69072</guid>
      <dc:creator>cmorrall</dc:creator>
      <dc:date>2018-11-13T14:00:17Z</dc:date>
    </item>
  </channel>
</rss>

