<?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: Windows: How can I incorporate a PowerShell script into my search? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-can-I-incorporate-a-PowerShell-script-into-my-search/m-p/359936#M65643</link>
    <description>&lt;P&gt;You will want to create a streaming search command. Here's the link to the docs on that: &lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEU2"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEU2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note that this is only commonly done in Python, so I would recommend using Python to read and write to Splunk, and then you can invoke your powershell.&lt;/P&gt;</description>
    <pubDate>Thu, 10 Aug 2017 03:29:16 GMT</pubDate>
    <dc:creator>David</dc:creator>
    <dc:date>2017-08-10T03:29:16Z</dc:date>
    <item>
      <title>Windows: How can I incorporate a PowerShell script into my search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-can-I-incorporate-a-PowerShell-script-into-my-search/m-p/359935#M65642</link>
      <description>&lt;P&gt;I'm working on a search over our Windows events to analyze the changes to permissions on files and directories:&lt;BR /&gt;
index=wineventlog sourcetype="XmlWinEventLog:Security" (EventID=4670 OR EventID=4907) AND ObjectType="File" &lt;/P&gt;

&lt;P&gt;A security descriptor (specifying the access rights) is part of these events and looks like this:&lt;BR /&gt;
D:PAI(A;;FA;;;S-1-5-80-956008885-3418522649-1831038044-1853292631-2271478464)(A;;0x1200a9;;;BA)(A;;0x1200a9;;;SY)(A;;0x1200a9;;;BU)&lt;/P&gt;

&lt;P&gt;In the reports and alerts I want to translate this to something a bit more readable. I have a powershell script which does exactly this and I would like to incorporate this into my search. Is this possible and how can I do this? &lt;/P&gt;

&lt;P&gt;Thanks in advance,&lt;BR /&gt;
Coen&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2017 11:03:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-can-I-incorporate-a-PowerShell-script-into-my-search/m-p/359935#M65642</guid>
      <dc:creator>coenvandijk</dc:creator>
      <dc:date>2017-08-09T11:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Windows: How can I incorporate a PowerShell script into my search?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Windows-How-can-I-incorporate-a-PowerShell-script-into-my-search/m-p/359936#M65643</link>
      <description>&lt;P&gt;You will want to create a streaming search command. Here's the link to the docs on that: &lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEU2"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEU2&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Note that this is only commonly done in Python, so I would recommend using Python to read and write to Splunk, and then you can invoke your powershell.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 03:29:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Windows-How-can-I-incorporate-a-PowerShell-script-into-my-search/m-p/359936#M65643</guid>
      <dc:creator>David</dc:creator>
      <dc:date>2017-08-10T03:29:16Z</dc:date>
    </item>
  </channel>
</rss>

