<?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 How to forward an event of a certain source? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453439#M94344</link>
    <description>&lt;P&gt;Hello everyone&lt;/P&gt;

&lt;P&gt;I work in a citrix service and I need to forward events for splunk enterprise&lt;BR /&gt;
My forwarder is on a citrix server and my indexer on a other VM, i create an input file (forwarder side) with this line :&lt;BR /&gt;
[WinEventLog://Application] to collect the events, that works, but i need only the citrix events.&lt;BR /&gt;
I can see the event with the EventViewer and their is a "source" field (that contains for example "Citrix File Management" , "WMsecurity" etc...)&lt;BR /&gt;
Is it possible to collect only the events with a certain source value?&lt;/P&gt;

&lt;P&gt;Something like : &lt;/P&gt;

&lt;P&gt;[WinEventLog://Application]&lt;BR /&gt;
source = Citrix File Managament&lt;/P&gt;

&lt;P&gt;(I tried, it doesn't work)&lt;/P&gt;

&lt;P&gt;If not is there another way to do that?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Sat, 21 Jul 2018 11:27:21 GMT</pubDate>
    <dc:creator>dbiguene</dc:creator>
    <dc:date>2018-07-21T11:27:21Z</dc:date>
    <item>
      <title>How to forward an event of a certain source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453439#M94344</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;

&lt;P&gt;I work in a citrix service and I need to forward events for splunk enterprise&lt;BR /&gt;
My forwarder is on a citrix server and my indexer on a other VM, i create an input file (forwarder side) with this line :&lt;BR /&gt;
[WinEventLog://Application] to collect the events, that works, but i need only the citrix events.&lt;BR /&gt;
I can see the event with the EventViewer and their is a "source" field (that contains for example "Citrix File Management" , "WMsecurity" etc...)&lt;BR /&gt;
Is it possible to collect only the events with a certain source value?&lt;/P&gt;

&lt;P&gt;Something like : &lt;/P&gt;

&lt;P&gt;[WinEventLog://Application]&lt;BR /&gt;
source = Citrix File Managament&lt;/P&gt;

&lt;P&gt;(I tried, it doesn't work)&lt;/P&gt;

&lt;P&gt;If not is there another way to do that?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 11:27:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453439#M94344</guid>
      <dc:creator>dbiguene</dc:creator>
      <dc:date>2018-07-21T11:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward an event of a certain source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453440#M94345</link>
      <description>&lt;P&gt;Hi dbiguene&lt;BR /&gt;
I don't know Citrix logs, so could you share an example?&lt;BR /&gt;
Anyway you could identify a regex in Citrix and then filter them before indexing (see &lt;A href="http://docs.splunk.com/Documentation/Splunk/7.1.1/Forwarding/Routeandfilterdatad"&gt;http://docs.splunk.com/Documentation/Splunk/7.1.1/Forwarding/Routeandfilterdatad&lt;/A&gt; ).&lt;/P&gt;

&lt;P&gt;e.g. if in your logs you have the string &lt;CODE&gt;source = Citrix File Managament&lt;/CODE&gt;&lt;BR /&gt;
you could configure your filter in the following way:&lt;BR /&gt;
in props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
TRANSFORMS-filter_citrix= setnull,set_filter_citrix
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[setnull]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue

[set_filter_citrix]
REGEX = source\s\=\sCitrix\sFile\sManagament
DEST_KEY = queue
FORMAT = indexQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Beware to the stanzas order in props.conf, instead order isn't important  in transforms.conf.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jul 2018 16:34:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453440#M94345</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2018-07-21T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward an event of a certain source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453441#M94346</link>
      <description>&lt;P&gt;ok thanks, i will test that monday&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 10:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453441#M94346</guid>
      <dc:creator>dbiguene</dc:creator>
      <dc:date>2018-07-22T10:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward an event of a certain source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453442#M94347</link>
      <description>&lt;P&gt;I tested your idea  and an other way (whitelist), but no matter my input.conf/props.conf/transforms.conf, my forwarder collects all the [winEventLog]:System logs when I never write this line! so i have 500k system logs and 0 app log in my splunk indexer and I know that i have 500k app log with eventviewer , I don't understand &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;input.conf :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
whitelist = ^.*Citrix.*$
disabled = 0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 11:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453442#M94347</guid>
      <dc:creator>dbiguene</dc:creator>
      <dc:date>2018-07-23T11:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward an event of a certain source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453443#M94348</link>
      <description>&lt;P&gt;Have a look at this: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#Event_Log_whitelist_and_blacklist_formats"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/inputsconf#Event_Log_whitelist_and_blacklist_formats&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It mentions "SourceName" as one of the keys by which you can whitelist / blacklist.&lt;/P&gt;

&lt;P&gt;So that would then look like this in inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[WinEventLog://Application]
whitelist = SourceName=".*Citrix.*"
disabled = 0 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 12:43:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453443#M94348</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-07-23T12:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to forward an event of a certain source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453444#M94349</link>
      <description>&lt;P&gt;My bad, I did not see that I had to modify input.conf in deployment-app/my-index (indexer side) and not input.conf in forwarder side! &lt;BR /&gt;
And you're right, I also forgot the quotes in my whitelist line&lt;BR /&gt;
Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:50:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-forward-an-event-of-a-certain-source/m-p/453444#M94349</guid>
      <dc:creator>dbiguene</dc:creator>
      <dc:date>2018-07-23T17:50:42Z</dc:date>
    </item>
  </channel>
</rss>

