<?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: Retrieving Windows Event logs with hyphens in the name in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441248#M76941</link>
    <description>&lt;P&gt;I have tried all these variants:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.splunk.com/I'd%20expect%20the%20one%20above%20not%20to%20work%20due%20to%20Splunk%20interpreting%20the%20last" title="-&amp;quot; as a path separator between &amp;quot;BitLocker&amp;quot; and &amp;quot;API"&gt;WinEventLog://Microsoft-Windows-BitLocker-API/Management&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also have tried varying forms of escaping the "-" between BitLocker and API:&lt;/P&gt;

&lt;P&gt;[WinEventLog://Microsoft-Windows-BitLocker-API/Management]&lt;BR /&gt;
[WinEventLog://Microsoft-Windows-BitLocker\-API/Management]&lt;/P&gt;

&lt;P&gt;None of these seemed to do the trick....&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2019 03:51:05 GMT</pubDate>
    <dc:creator>torowa</dc:creator>
    <dc:date>2019-03-15T03:51:05Z</dc:date>
    <item>
      <title>Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441245#M76938</link>
      <description>&lt;P&gt;Hi Splunkers.&lt;BR /&gt;
I am trying to retrieve Windows event logs from and endpoint using a universal forwarder.&lt;BR /&gt;
Having problems doing this where the log location contains a hyphen in the path/name.&lt;/P&gt;

&lt;P&gt;Normally, to access a log located in the Events such as:   --&amp;gt; Microsoft --&amp;gt; Windows --&amp;gt; AppLocker --&amp;gt; EXE and DLL &lt;BR /&gt;
one would use [WinEventLog://Microsoft-Windows-AppLocker/EXE and DLL] in the inputs.conf&lt;/P&gt;

&lt;P&gt;... The "-" in the WinEventLog stanza heading is used as the path separator, not unlike a "/" in a pathname.&lt;/P&gt;

&lt;P&gt;The problem I am having is where the paths or the actual name of a particular log contains a "-".&lt;BR /&gt;
For example, for a path such as  --&amp;gt; Microsoft --&amp;gt; Windows --&amp;gt; BitLocker-API --&amp;gt; Management, how do you escape the "-" in the WinEventLog:// stanza so that Splunk interprets the "-" as part of "Bitlocker-API", and not the path separator.&lt;/P&gt;

&lt;P&gt;Is there any special handing needed to escape the "-" for in to be interepreted correctly?&lt;BR /&gt;
Have tried many combinations and escaping this with a "\" but had no luck.  The log is never retrieved.&lt;/P&gt;

&lt;P&gt;Have tried this with a custom path &lt;EM&gt;without&lt;/EM&gt; a "-" in the name and it works as expected.  Creating an identical custom log &lt;EM&gt;with&lt;/EM&gt; a "-" in the name/path does not retrieve the log. &lt;/P&gt;

&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2019 23:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441245#M76938</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2019-03-14T23:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441246#M76939</link>
      <description>&lt;P&gt;Can you post your [monitor] stanza from inputs.conf for that path?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:33:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441246#M76939</guid>
      <dc:creator>kmower</dc:creator>
      <dc:date>2019-03-15T03:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441247#M76940</link>
      <description>&lt;P&gt;For example...&lt;/P&gt;

&lt;P&gt;This one works:&lt;BR /&gt;
[WinEventLog://Microsoft-Windows-BranchCache/Operational]&lt;/P&gt;

&lt;P&gt;The actual log itself is called "Operational".&lt;/P&gt;

&lt;P&gt;... however trying to access  --&amp;gt; Microsoft -&amp;gt; Windows -&amp;gt; BitLocker-API -&amp;gt; Management doesn't work  (Note that one of the path segments is "BitLocker-API"&lt;/P&gt;

&lt;P&gt;I suspect this one doesn't work as Splunk would see "Bitlocker" and "API" as being different segments of the path:&lt;BR /&gt;
&lt;STRONG&gt;[WinEventLog://Microsoft-Windows-BitLocker-API/Management]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;I've tried escaping the "-" with an escape both of these:&lt;BR /&gt;
&lt;STRONG&gt;[WinEventLog://Microsoft-Windows-BitLocker\-API/Management]&lt;BR /&gt;
[WinEventLog://Microsoft-Windows-BitLocker-API/Management]&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;but have been unable to pull the events successfully.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441247#M76940</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2019-03-15T03:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441248#M76941</link>
      <description>&lt;P&gt;I have tried all these variants:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://community.splunk.com/I'd%20expect%20the%20one%20above%20not%20to%20work%20due%20to%20Splunk%20interpreting%20the%20last" title="-&amp;quot; as a path separator between &amp;quot;BitLocker&amp;quot; and &amp;quot;API"&gt;WinEventLog://Microsoft-Windows-BitLocker-API/Management&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Also have tried varying forms of escaping the "-" between BitLocker and API:&lt;/P&gt;

&lt;P&gt;[WinEventLog://Microsoft-Windows-BitLocker-API/Management]&lt;BR /&gt;
[WinEventLog://Microsoft-Windows-BitLocker\-API/Management]&lt;/P&gt;

&lt;P&gt;None of these seemed to do the trick....&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 03:51:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441248#M76941</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2019-03-15T03:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441249#M76942</link>
      <description>&lt;P&gt;o.k..Got it.... For others chasing this, seems the Log names displayed in the tree view of Event Viewer are not necessarily what they are called.&lt;BR /&gt;
Best way to get the string for the WinEventLog stanza is to use Event Viewer and click on the properties of the log.&lt;BR /&gt;
"Full Name" field will give you the name needed in the stanza.&lt;/P&gt;

&lt;P&gt;For example, browsing the Event viewer the BitLocker log displays under the following path:&lt;BR /&gt;
Microsoft -&amp;gt; Windows -&amp;gt; BitLocker-API -&amp;gt; Management.&lt;/P&gt;

&lt;P&gt;"Microsoft-Windows-BitLocker/BitLocker Management" is how it show up under properties (note the "-API" part is missing).&lt;/P&gt;

&lt;P&gt;Thanks for looking...&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 05:06:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441249#M76942</guid>
      <dc:creator>torowa</dc:creator>
      <dc:date>2019-03-15T05:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441250#M76943</link>
      <description>&lt;P&gt;@torowa If your problem is resolved, please accept an answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 14:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441250#M76943</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-03-15T14:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving Windows Event logs with hyphens in the name</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441251#M76944</link>
      <description>&lt;P&gt;Great job solving your own problem. You should accept your own answer, so that others searching in the future know you resolved it.&lt;BR /&gt;
Good Luck.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2019 14:36:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Retrieving-Windows-Event-logs-with-hyphens-in-the-name/m-p/441251#M76944</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2019-03-15T14:36:32Z</dc:date>
    </item>
  </channel>
</rss>

