<?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: transformation of the logs in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159657#M98003</link>
    <description>&lt;P&gt;In props.conf i created a new sourcetype involving transformation part in it.&lt;BR /&gt;
In transform.conf I didn give the regex pattern yet waiting for your answer to give a try.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Nov 2013 06:14:51 GMT</pubDate>
    <dc:creator>Jananee_iNautix</dc:creator>
    <dc:date>2013-11-29T06:14:51Z</dc:date>
    <item>
      <title>transformation of the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159654#M98000</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I was given logs of certain format and now i want to output the logs in different format.Below is the sample logs given&lt;BR /&gt;
2013/11/22 00:03:21 [therws] User activity containing filename &lt;A href="https://community.splunk.com/ascii"&gt;abc.txt&lt;/A&gt;&lt;BR /&gt;
2013/11/22 00:03:21 [tergs] User activity containing filename &lt;A href="https://community.splunk.com/binary"&gt;cde.csv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I should extract fields from the above logs and output them in splunk following format as events.&lt;/P&gt;

&lt;P&gt;Fri November 22 00:03:21 2013 threws abc.txt a&lt;/P&gt;

&lt;P&gt;a is for ascii &lt;BR /&gt;
b is for binary&lt;/P&gt;

&lt;P&gt;Can this be  done in splunk?The transformation of logs should take place not at search time.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 11:33:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159654#M98000</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2013-11-28T11:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: transformation of the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159655#M98001</link>
      <description>&lt;P&gt;At search time or at index time ?&lt;/P&gt;

&lt;P&gt;At search time, you can extract all your fields, with rex and use a simple eval to create the needed field.&lt;BR /&gt;
And when you export, use another eval to format/concatenate your events with all the fields, in the order you want &lt;/P&gt;

&lt;P&gt;see the pseudo search code.&lt;BR /&gt;
&lt;CODE&gt;&amp;lt;mysearch&amp;gt; | eval a=if(condition, "ascii","binary") | eval _raw=dayofweek."|".month."|".day."|".time_of_day."|".year."|".filename."|".a."|".User_activity&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Please provide your props and transforms to understand what was done.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2013 17:15:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159655#M98001</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-11-28T17:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: transformation of the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159656#M98002</link>
      <description>&lt;P&gt;I want at index time.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 06:12:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159656#M98002</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2013-11-29T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: transformation of the logs</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159657#M98003</link>
      <description>&lt;P&gt;In props.conf i created a new sourcetype involving transformation part in it.&lt;BR /&gt;
In transform.conf I didn give the regex pattern yet waiting for your answer to give a try.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Nov 2013 06:14:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transformation-of-the-logs/m-p/159657#M98003</guid>
      <dc:creator>Jananee_iNautix</dc:creator>
      <dc:date>2013-11-29T06:14:51Z</dc:date>
    </item>
  </channel>
</rss>

