<?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 tabular information using KV_MODE in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101284#M182838</link>
    <description>&lt;P&gt;For a &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; that does not ever match, I use &lt;CODE&gt;LINE_BREAKER = (?!)&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2011 05:34:54 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2011-02-03T05:34:54Z</dc:date>
    <item>
      <title>Extracting tabular information using KV_MODE</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101282#M182836</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I have a search that uses multikv in the search command to take my tablular event and split it up into fields, as follows&lt;/P&gt;

&lt;PRE&gt;index=logchecker | multikv fields App LogFile FileCount FileSize LineCount MinDate MaxDate NoOfMinutes AveCharPerMinute&lt;/PRE&gt;

&lt;P&gt;This gives me an event on each line, with it picking up each field, so I can just then pass these fields to a "table" command and it comes out nicely.  &lt;/P&gt;

&lt;P&gt;However, I'd like to find a way to do this automatically in props.conf to make things simpler. I looked it up and the documentation suggests just adding the following, but this doesn't seem to have any impact.&lt;/P&gt;

&lt;PRE&gt;KV_MODE = true
CHECK_FOR_HEADER = true&lt;/PRE&gt; 

&lt;P&gt;Is there something else I need to add? My input is basically a script which echos lines of data as it searches through logs, outputting a first line of headers.  I've changed props.conf to merge all the data together so I can then split it correctly based on the headers.  Current props.conf&lt;/P&gt;

&lt;PRE&gt;
[logchecker]
BREAK_ONLY_BEFORE = &amp;lt;stuff&amp;gt;
DATETIME_CONFIG = CURRENT
KV_MODE = multi
CHECK_FOR_HEADER = true
&lt;/PRE&gt;

&lt;P&gt;Current Output&lt;/P&gt;

&lt;PRE&gt;App,LogFile,FileCount,FileSize,LineCount,MinDate,MaxDate,NoOfMinutes,AveCharPerMinute
./configservice,vsol43a-6005,configservice.tc1.log, 21, 106659113, 845724,2010-04-06 06:24,2010-12-08 10:34,354490,300
./configservice,vsol43a-6005,configservice.tp1.log, 9, 42589938, 284878,2010-01-19 09:03,2010-12-08 10:44,465221,91
&lt;/PRE&gt;

&lt;P&gt;Any ideas how I can do this extraction automatically?&lt;/P&gt;

&lt;P&gt;Thanks
Hazel&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2010 19:06:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101282#M182836</guid>
      <dc:creator>Hazel</dc:creator>
      <dc:date>2010-12-08T19:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting tabular information using KV_MODE</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101283#M182837</link>
      <description>&lt;P&gt;Try using the following stanza in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[logchecker]
SHOULD_LINEMERGE = false
LINE_BREAKER     = (ThiStringDoesNotExistInYourData)
TRUNCATE         = 100000
DATETIME_CONFIG  = CURRENT
KV_MODE          = multi
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The first four lines of that stanza instruct Splunk to index the entire file content (up to 100KB, increase if necessary) as a single event and assign it the current timestamp. KV_MODE tells Splunk search to apply auto multikv to the events when they are retrieved from the index and before any further search time processing&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2010 02:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101283#M182837</guid>
      <dc:creator>Ledion_Bitincka</dc:creator>
      <dc:date>2010-12-09T02:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting tabular information using KV_MODE</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101284#M182838</link>
      <description>&lt;P&gt;For a &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; that does not ever match, I use &lt;CODE&gt;LINE_BREAKER = (?!)&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2011 05:34:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Extracting-tabular-information-using-KV-MODE/m-p/101284#M182838</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-02-03T05:34:54Z</dc:date>
    </item>
  </channel>
</rss>

