<?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 Indexing a syslog file - doesnt give expected output in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-syslog-file-doesnt-give-expected-output/m-p/187988#M37530</link>
    <description>&lt;P&gt;Raw Logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Fri Mar 14 11:16:16 2014$SERVICEALERT$HOST1$SERVICE1$OK$PROCS OK: 1 process OK
Fri Mar 14 11:17:11 2014$HOSTALERT$HOST2$SERVICE2$WARNING$PROCS OK: 1 process WARNING 
Fri Mar 14 11:18:12 2014$HOSTEALERT$HOST3$SERVICE3$OK$PROCS OK: 1 process OK
Fri Mar 14 11:19:14 2014$SERVICEALERT$HOST4$SERVICE4$CRITICAL$PROCS OK: 1 process CRITICAL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I wanted to index the above _raw log with fields: "TIMESTAMP" ,"ALERTTYPE" ,"HOSTNAME" ,"SERVICENAME" ,"STATUS" ,"Description"&lt;/P&gt;

&lt;P&gt;I set the props.conf &amp;amp; transforms.conf as below:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom]
REPORT-search = extract_custom
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom]
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::custom

[extract_custom]
DELIMS = "$"
FIELDS = "TIMESTAMP"$"ALERTTYPE"$"HOSTNAME"$"SERVICENAME"$"STATUS"$"Description"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I couldn't get the exptected output , am i missing something?&lt;/P&gt;</description>
    <pubDate>Fri, 14 Mar 2014 11:47:17 GMT</pubDate>
    <dc:creator>splunker12er</dc:creator>
    <dc:date>2014-03-14T11:47:17Z</dc:date>
    <item>
      <title>Indexing a syslog file - doesnt give expected output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-syslog-file-doesnt-give-expected-output/m-p/187988#M37530</link>
      <description>&lt;P&gt;Raw Logs:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Fri Mar 14 11:16:16 2014$SERVICEALERT$HOST1$SERVICE1$OK$PROCS OK: 1 process OK
Fri Mar 14 11:17:11 2014$HOSTALERT$HOST2$SERVICE2$WARNING$PROCS OK: 1 process WARNING 
Fri Mar 14 11:18:12 2014$HOSTEALERT$HOST3$SERVICE3$OK$PROCS OK: 1 process OK
Fri Mar 14 11:19:14 2014$SERVICEALERT$HOST4$SERVICE4$CRITICAL$PROCS OK: 1 process CRITICAL
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I wanted to index the above _raw log with fields: "TIMESTAMP" ,"ALERTTYPE" ,"HOSTNAME" ,"SERVICENAME" ,"STATUS" ,"Description"&lt;/P&gt;

&lt;P&gt;I set the props.conf &amp;amp; transforms.conf as below:&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;props.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom]
REPORT-search = extract_custom
SHOULD_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;transforms.conf&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom]
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::custom

[extract_custom]
DELIMS = "$"
FIELDS = "TIMESTAMP"$"ALERTTYPE"$"HOSTNAME"$"SERVICENAME"$"STATUS"$"Description"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I couldn't get the exptected output , am i missing something?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-syslog-file-doesnt-give-expected-output/m-p/187988#M37530</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-03-14T11:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Indexing a syslog file - doesnt give expected output</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-syslog-file-doesnt-give-expected-output/m-p/187989#M37531</link>
      <description>&lt;P&gt;I got the answer:&lt;/P&gt;

&lt;P&gt;I made a mistake in &lt;STRONG&gt;transforms.conf&lt;/STRONG&gt; - Below is the corercted one. ',' and not '$'&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom]
DEST_KEY = MetaData:Sourcetype
FORMAT = sourcetype::custom

[extract_custom]
DELIMS = "$"
FIELDS = "TIMESTAMP","ALERTTYPE","HOSTNAME","SERVICENAME","STATUS","Description"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Mar 2014 11:50:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexing-a-syslog-file-doesnt-give-expected-output/m-p/187989#M37531</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2014-03-14T11:50:15Z</dc:date>
    </item>
  </channel>
</rss>

