<?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 forward a subset of existing input in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/forward-a-subset-of-existing-input/m-p/27003#M4485</link>
    <description>&lt;P&gt;I’m trying to take a subset of our regular logs and forward them on to another department.&lt;BR /&gt;
Am I doing this right?  Is the RegEx correct?  Do I have the right idea here?&lt;/P&gt;

&lt;P&gt;So, what I need to do is forward ONLY the logs that have one of the following in them (this is 4 out of hundreds):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;group\geo\country1\*
group\geo\country2\*
group\geo\country3\sub1\*
group\geo\country3\sub12\*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This field is already extracted in transforms.conf as “PathAndName”, but includes hundreds of others as well.  (It’s the 3rd last field in the current transforms.conf below)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Already existing extraction in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_extractions]
DELIMS = "|"
FIELDS = "EventID","AlertTime","ThreatInstanceID","ActionTaken","country2erName","Scountry1nnerType","ThreatName","Statcountry2","ThreatType","ThreatSubType","ComputerID","FullFilePath","FileNameOffset","Name","DNSName","IPAddress","OperatingSystem","ServicePack","Vircountry2DataVersion","FullFilePathCheckSum","ThreatLocountry1lID","CheckSum","SAVVersion","DomainName","PathAndName","ParentGroup","SophosDB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently I have the following, but it isn’t working, even though it works great in Expresso and RegexBuddy (as well as about 20 other things!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_to_SSIM]
REGEX= (?i)(?&amp;lt;PathAndName&amp;gt;group\\geo\\country2|group\\geo\\country1|group\\geo\\country3\\sub1|group\\geo\\country3\\sub12)
DEST_KEY=_TCP_ROUTING
FORMAT=test_to_SSIM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;PROPS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::existing_feed]
TRANSFORMS-routing = test_to_SSIM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;OUTPUTS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:test_to_SSIM]
server=xxx.xxx.xxx.xxx:10595
sendCookedData=false
dropEventsOnQueueFull = 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 15 Jan 2011 02:47:53 GMT</pubDate>
    <dc:creator>dhaffner</dc:creator>
    <dc:date>2011-01-15T02:47:53Z</dc:date>
    <item>
      <title>forward a subset of existing input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/forward-a-subset-of-existing-input/m-p/27003#M4485</link>
      <description>&lt;P&gt;I’m trying to take a subset of our regular logs and forward them on to another department.&lt;BR /&gt;
Am I doing this right?  Is the RegEx correct?  Do I have the right idea here?&lt;/P&gt;

&lt;P&gt;So, what I need to do is forward ONLY the logs that have one of the following in them (this is 4 out of hundreds):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;group\geo\country1\*
group\geo\country2\*
group\geo\country3\sub1\*
group\geo\country3\sub12\*
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This field is already extracted in transforms.conf as “PathAndName”, but includes hundreds of others as well.  (It’s the 3rd last field in the current transforms.conf below)&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;TRANSFORMS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Already existing extraction in transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_extractions]
DELIMS = "|"
FIELDS = "EventID","AlertTime","ThreatInstanceID","ActionTaken","country2erName","Scountry1nnerType","ThreatName","Statcountry2","ThreatType","ThreatSubType","ComputerID","FullFilePath","FileNameOffset","Name","DNSName","IPAddress","OperatingSystem","ServicePack","Vircountry2DataVersion","FullFilePathCheckSum","ThreatLocountry1lID","CheckSum","SAVVersion","DomainName","PathAndName","ParentGroup","SophosDB"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Currently I have the following, but it isn’t working, even though it works great in Expresso and RegexBuddy (as well as about 20 other things!):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[test_to_SSIM]
REGEX= (?i)(?&amp;lt;PathAndName&amp;gt;group\\geo\\country2|group\\geo\\country1|group\\geo\\country3\\sub1|group\\geo\\country3\\sub12)
DEST_KEY=_TCP_ROUTING
FORMAT=test_to_SSIM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;PROPS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::existing_feed]
TRANSFORMS-routing = test_to_SSIM
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;OUTPUTS.CONF&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[tcpout:test_to_SSIM]
server=xxx.xxx.xxx.xxx:10595
sendCookedData=false
dropEventsOnQueueFull = 10
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 15 Jan 2011 02:47:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/forward-a-subset-of-existing-input/m-p/27003#M4485</guid>
      <dc:creator>dhaffner</dc:creator>
      <dc:date>2011-01-15T02:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: forward a subset of existing input</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/forward-a-subset-of-existing-input/m-p/27004#M4486</link>
      <description>&lt;P&gt;That all looks correct.&lt;/P&gt;

&lt;P&gt;You may want to ensure you set to index and forward in outputs.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
indexAndForward=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See more examples &lt;A href="http://www.splunk.com/base/Documentation/4.0.11/Admin/Routedatatodifferentplacesbasedoncontent" rel="nofollow"&gt;at the splunk documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2011 21:40:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/forward-a-subset-of-existing-input/m-p/27004#M4486</guid>
      <dc:creator>dart</dc:creator>
      <dc:date>2011-03-17T21:40:09Z</dc:date>
    </item>
  </channel>
</rss>

