<?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 event raw size just like linecount in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177544#M51052</link>
    <description>&lt;P&gt;Thanks, exactly what I need.&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2014 08:19:04 GMT</pubDate>
    <dc:creator>tpflicke</dc:creator>
    <dc:date>2014-05-27T08:19:04Z</dc:date>
    <item>
      <title>How to extract event raw size just like linecount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177542#M51050</link>
      <description>&lt;P&gt;I frequently use the length of the raw data - more often than readily extracted fields punctuation and linecount&lt;/P&gt;

&lt;P&gt;I do so be extracting the field in the query like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval raw_length=len(_raw) | ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What are the options to do this as a predefined field extraction at either search time or even index time?&lt;/P&gt;</description>
      <pubDate>Sat, 24 May 2014 15:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177542#M51050</guid>
      <dc:creator>tpflicke</dc:creator>
      <dc:date>2014-05-24T15:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event raw size just like linecount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177543#M51051</link>
      <description>&lt;P&gt;You can do this with a 'calculated field' which is really just an &lt;CODE&gt;eval&lt;/CODE&gt; command stuff into a config file.  Stuff this into &lt;CODE&gt;$SPLUNK_HOME/etc/system/local/props.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
EVAL-raw_length = len(_raw)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 May 2014 23:45:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177543#M51051</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2014-05-24T23:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract event raw size just like linecount</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177544#M51052</link>
      <description>&lt;P&gt;Thanks, exactly what I need.&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2014 08:19:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-extract-event-raw-size-just-like-linecount/m-p/177544#M51052</guid>
      <dc:creator>tpflicke</dc:creator>
      <dc:date>2014-05-27T08:19:04Z</dc:date>
    </item>
  </channel>
</rss>

