<?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: extracting from logs before indexing to server in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49490#M9394</link>
    <description>&lt;P&gt;I'm going to presume that your source application is using log4j as its logging framework(because activemq uses log4j) , therefore you could declare a seperate log4j appender in your log4j config file that outputs &lt;STRONG&gt;only&lt;/STRONG&gt; the log data you want to send to the Splunk Indexer.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2011 04:55:45 GMT</pubDate>
    <dc:creator>Damien_Dallimor</dc:creator>
    <dc:date>2011-07-28T04:55:45Z</dc:date>
    <item>
      <title>extracting from logs before indexing to server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49489#M9393</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Is there a way to extract a part of log event before it being indexed to splunk server for example&lt;BR /&gt;
Below is the entire event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;====================
{ActiveMQ Session Task} DEBUG LogCollector - start[1311770824360] time[474] tag[card;cardCreation;cardCreation End] host[hagrid.hyd.wc;127.0.0.1]
{ActiveMQ Session Task} DEBUG PerfLoggerDAOImpl - getting ServiceOperationInfo
Hibernate: select serviceope1_.id as id2_, serviceope1_.service_id as service2_2_, serviceope1_.operation_name as operation3_2_, serviceope1_.operation_descr as operation4_2_, serviceope1_.status as status2_ from service_info serviceinf0_, service_operation_info serviceope1_ where serviceope1_.service_id=serviceinf0_.id and serviceinf0_.name=? and serviceope1_.operation_name=?
Hibernate: select serviceinf0_.id as id1_0_, serviceinf0_.name as name1_0_, serviceinf0_.description as descript3_1_0_, serviceinf0_.type as type1_0_, serviceinf0_.status as status1_0_ from service_info serviceinf0_ where serviceinf0_.id=?
{ActiveMQ Session Task} DEBUG PerfLoggerDAOImpl - saving TaskExecutionInfo instance
=============
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But I want only  to see this "start[1311770824360] time[474] host[hagrid.hyd.wc;127.0.0.1]" in my indexer and the rest of part should be ignored. the filtering to be done on the client side only.&lt;BR /&gt;
Is this possible.&lt;BR /&gt;
Regards,&lt;BR /&gt;
Harish&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2011 17:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49489#M9393</guid>
      <dc:creator>dhs_harry08</dc:creator>
      <dc:date>2011-07-27T17:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: extracting from logs before indexing to server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49490#M9394</link>
      <description>&lt;P&gt;I'm going to presume that your source application is using log4j as its logging framework(because activemq uses log4j) , therefore you could declare a seperate log4j appender in your log4j config file that outputs &lt;STRONG&gt;only&lt;/STRONG&gt; the log data you want to send to the Splunk Indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2011 04:55:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49490#M9394</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2011-07-28T04:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: extracting from logs before indexing to server</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49491#M9395</link>
      <description>&lt;P&gt;I am actually using splunk forwarder. Is it possible to specify in splunk forwarding config files or write some script to filter out the my application logs.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Harish&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2011 11:25:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/extracting-from-logs-before-indexing-to-server/m-p/49491#M9395</guid>
      <dc:creator>dhs_harry08</dc:creator>
      <dc:date>2011-07-28T11:25:51Z</dc:date>
    </item>
  </channel>
</rss>

