<?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: how to extract values using sourcetype? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253551#M48700</link>
    <description>&lt;P&gt;Hi sfatnass, &lt;/P&gt;

&lt;P&gt;Index your logs and create a custom sourcetype, for example,  named mylogs. Then create custom search-time field extraction: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Edit $SPLUNKHOME/etc/apps/search/local/props.conf: &lt;/P&gt;

&lt;P&gt;[mylogs]&lt;BR /&gt;
REPORT-mylogs = mylogs&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Edit $SPLUNKHOME/etc/apps/search/local/transforms.conf: &lt;/P&gt;

&lt;P&gt;[mylogs]&lt;BR /&gt;
DELIMS = "#"&lt;BR /&gt;
FIELDS = name date ip ua status acted numact&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Reload your configuration files through &lt;A href="http://your_splunk_web_url:8000/en-US/debug/refresh"&gt;http://your_splunk_web_url:8000/en-US/debug/refresh&lt;/A&gt; , and your logs will have the correct fields extracted. &lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hope it helps. Thanks!&lt;BR /&gt;
Hunter&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 14:40:59 GMT</pubDate>
    <dc:creator>hunters_splunk</dc:creator>
    <dc:date>2016-10-13T14:40:59Z</dc:date>
    <item>
      <title>how to extract values using sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253548#M48697</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
 i have some logs contain values separate by #.&lt;/P&gt;

&lt;P&gt;exemple : &lt;/P&gt;

&lt;P&gt;charlie#2016-10-11#125.44.23.10#Mozzila#resolvedTest#1#12&lt;/P&gt;

&lt;P&gt;my objectif is to add new fields :&lt;BR /&gt;
name = charlie&lt;BR /&gt;
date = 2016-10-11&lt;BR /&gt;
ip = 125.44.23.10&lt;BR /&gt;
ua = Mozzila&lt;BR /&gt;
status = resolvedTest&lt;BR /&gt;
acted = 1&lt;BR /&gt;
numact = 12&lt;/P&gt;

&lt;P&gt;the separator is #&lt;/P&gt;

&lt;P&gt;but how can i edit the configuration&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253548#M48697</guid>
      <dc:creator>sfatnass</dc:creator>
      <dc:date>2016-10-13T13:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract values using sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253549#M48698</link>
      <description>&lt;P&gt;You could use the &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.3/Knowledge/ExtractfieldsinteractivelywithIFX"&gt;Interactive Field Extractor&lt;/A&gt; to extract these fields. Select the delim option and use &lt;CODE&gt;#&lt;/CODE&gt; as the delimiter. You will then have an opportunity to name all the fields that are extracted.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253549#M48698</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-10-13T13:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract values using sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253550#M48699</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;props.conf
    [ mysourcetype ]
    SHOULD_LINEMERGE=false
    NO_BINARY_CHECK=true
    TIME_FORMAT=%Y-%m-%d
    TIME_PREFIX=\w+\#
    MAX_TIMESTAMP_LOOKAHEAD=10
    REPORT-mylogs = mylogs_fields

transforms.conf
    [mylogs_fields]
    DELIMS = "#"
    FIELDS = "name","date","ip","ua","status","acted","numact"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 13:57:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253550#M48699</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2016-10-13T13:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to extract values using sourcetype?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253551#M48700</link>
      <description>&lt;P&gt;Hi sfatnass, &lt;/P&gt;

&lt;P&gt;Index your logs and create a custom sourcetype, for example,  named mylogs. Then create custom search-time field extraction: &lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Edit $SPLUNKHOME/etc/apps/search/local/props.conf: &lt;/P&gt;

&lt;P&gt;[mylogs]&lt;BR /&gt;
REPORT-mylogs = mylogs&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Edit $SPLUNKHOME/etc/apps/search/local/transforms.conf: &lt;/P&gt;

&lt;P&gt;[mylogs]&lt;BR /&gt;
DELIMS = "#"&lt;BR /&gt;
FIELDS = name date ip ua status acted numact&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Reload your configuration files through &lt;A href="http://your_splunk_web_url:8000/en-US/debug/refresh"&gt;http://your_splunk_web_url:8000/en-US/debug/refresh&lt;/A&gt; , and your logs will have the correct fields extracted. &lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Hope it helps. Thanks!&lt;BR /&gt;
Hunter&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:40:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/how-to-extract-values-using-sourcetype/m-p/253551#M48700</guid>
      <dc:creator>hunters_splunk</dc:creator>
      <dc:date>2016-10-13T14:40:59Z</dc:date>
    </item>
  </channel>
</rss>

