<?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: EventLog by Powershell in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134320#M27604</link>
    <description>&lt;P&gt;Log from SPLUNK.&lt;BR /&gt;
Info 2014-02-04T20:16:57.3136715Z Modular PowerShell Initialized Successfully: 2 Jobs Loaded&lt;BR /&gt;
Error 2014-02-04T20:16:58.7021071Z PowerShell Exception: Input string was not in a correct format.&lt;BR /&gt;
Error 2014-02-04T20:16:59.1545187Z PowerShell Exception: Input string was not in a correct format.&lt;BR /&gt;
Error 2014-02-04T20:16:59.5913299Z PowerShell Exception: Input string was not in a correct format.&lt;/P&gt;</description>
    <pubDate>Tue, 04 Feb 2014 20:20:18 GMT</pubDate>
    <dc:creator>trzcionek</dc:creator>
    <dc:date>2014-02-04T20:20:18Z</dc:date>
    <item>
      <title>EventLog by Powershell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134317#M27601</link>
      <description>&lt;P&gt;How can I get event log from CIFS EMC with use powershell?&lt;BR /&gt;
When I use something like below, always Splunk indexes only last event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[powershell://EventLog]
script = Get-EventLog -LogName Security -ComputerName FS03-C
schedule = 0/5 *  * ? * *
sourcetype = WinEventLog:Security
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Do you help me?, because it drive me crazy&lt;BR /&gt;
I started with Splunk yesterday?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 20:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134317#M27601</guid>
      <dc:creator>trzcionek</dc:creator>
      <dc:date>2014-02-02T20:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: EventLog by Powershell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134318#M27602</link>
      <description>&lt;P&gt;I think you should be looking at this? &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/MonitorWMIdata"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/Data/MonitorWMIdata&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2014 21:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134318#M27602</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-02T21:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: EventLog by Powershell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134319#M27603</link>
      <description>&lt;P&gt;I can't use WMI,because EMC VNX 5300 on CIFS servers is unsupported.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 14:19:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134319#M27603</guid>
      <dc:creator>trzcionek</dc:creator>
      <dc:date>2014-02-03T14:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: EventLog by Powershell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134320#M27604</link>
      <description>&lt;P&gt;Log from SPLUNK.&lt;BR /&gt;
Info 2014-02-04T20:16:57.3136715Z Modular PowerShell Initialized Successfully: 2 Jobs Loaded&lt;BR /&gt;
Error 2014-02-04T20:16:58.7021071Z PowerShell Exception: Input string was not in a correct format.&lt;BR /&gt;
Error 2014-02-04T20:16:59.1545187Z PowerShell Exception: Input string was not in a correct format.&lt;BR /&gt;
Error 2014-02-04T20:16:59.5913299Z PowerShell Exception: Input string was not in a correct format.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2014 20:20:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134320#M27604</guid>
      <dc:creator>trzcionek</dc:creator>
      <dc:date>2014-02-04T20:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: EventLog by Powershell</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134321#M27605</link>
      <description>&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Data/MonitorWMIdata#Examples_of_wmi.conf"&gt;Gathering event logs via WMI&lt;/A&gt; is probably your most efficient option. You mentioned in a comment above that this is not an option, but perhaps that's worth digging deeper (need more details).&lt;/P&gt;

&lt;P&gt;Regarding your PowerShell input, realize that you can't just put any command into here. Read the docs included with the &lt;A href="http://apps.splunk.com/app/1477/"&gt;PowerShell Add-on&lt;/A&gt; app (&lt;A href="https://github.com/splunk/splunk-powershell-modularinput/tree/master/Package/README#output"&gt;direct link to the right file in Github&lt;/A&gt;. I don't know what the input string error refers to, but it could be related to some fields in the data that don't work in the add-on. Run the command through Select-Object and only include the fields that you need. Also, you'll want to put a filter on there so it's not grabbing 1000's of event log items every time (unless that's what you want). If you just run Get-EventLog by itself, you may be getting the same data multiple times.&lt;/P&gt;

&lt;P&gt;Another tip: check out the MS Exchange app, it's probably got the most examples of use of the PowerShell add-on.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 20:51:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/EventLog-by-Powershell/m-p/134321#M27605</guid>
      <dc:creator>halr9000</dc:creator>
      <dc:date>2014-02-05T20:51:06Z</dc:date>
    </item>
  </channel>
</rss>

