<?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 Creating fields based on a comma seperated list of values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Creating-fields-based-on-a-comma-seperated-list-of-values/m-p/116596#M30975</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am indexing a set of csv files. the files do not have the header fields in it.&lt;/P&gt;

&lt;P&gt;While I am creating the sourcetype, I would like to specify the following fields name for the sourcetype - which is a comma separated list. How can i do that?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;tenant,MGId,HostGroup,TotalVMsPerHG,TotalpCoreForHG,UsedpCoreForHG,FreepCoreForHG,CoreAvailabilityPercentForHG,&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Oct 2013 01:02:41 GMT</pubDate>
    <dc:creator>sourabhguha</dc:creator>
    <dc:date>2013-10-27T01:02:41Z</dc:date>
    <item>
      <title>Creating fields based on a comma seperated list of values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-fields-based-on-a-comma-seperated-list-of-values/m-p/116596#M30975</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am indexing a set of csv files. the files do not have the header fields in it.&lt;/P&gt;

&lt;P&gt;While I am creating the sourcetype, I would like to specify the following fields name for the sourcetype - which is a comma separated list. How can i do that?&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;tenant,MGId,HostGroup,TotalVMsPerHG,TotalpCoreForHG,UsedpCoreForHG,FreepCoreForHG,CoreAvailabilityPercentForHG,&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Oct 2013 01:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-fields-based-on-a-comma-seperated-list-of-values/m-p/116596#M30975</guid>
      <dc:creator>sourabhguha</dc:creator>
      <dc:date>2013-10-27T01:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating fields based on a comma seperated list of values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Creating-fields-based-on-a-comma-seperated-list-of-values/m-p/116597#M30976</link>
      <description>&lt;P&gt;Setup a delimiter based field extraction in props.conf / transforms.conf.&lt;/P&gt;

&lt;P&gt;In props.conf, you put something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
REPORT = getcsvfields
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And in transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[getcsvfields]
DELIMS = ","
FIELDS = tenant,MGId,HostGroup,TotalVMsPerHG,TotalpCoreForHG,UsedpCoreForHG,FreepCoreForHG,CoreAvailabilityPercentForHG
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Oct 2013 08:00:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Creating-fields-based-on-a-comma-seperated-list-of-values/m-p/116597#M30976</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-10-27T08:00:22Z</dc:date>
    </item>
  </channel>
</rss>

