<?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 fields at index time? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363149#M7147</link>
    <description>&lt;P&gt;Final config looks like this if anyone ever needs it:&lt;BR /&gt;
transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SerilogKVPairs]
DELIMS = "{,}", ":"

[LogLevel]
REGEX = ^(?:[^ \n]* ){3}(?P&amp;lt;loglevel&amp;gt;[^ ]+)
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[LogLevel]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Extract fields from Serilog log inputs
REPORT-SerilogKVPairs= SerilogKVPairs
TRANSFORMS-LogLevel= LogLevel
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Oct 2017 01:54:34 GMT</pubDate>
    <dc:creator>paulmilbank</dc:creator>
    <dc:date>2017-10-02T01:54:34Z</dc:date>
    <item>
      <title>How to extract fields at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363144#M7142</link>
      <description>&lt;P&gt;We have .net logs from SeriLog and we would like to break it down into key value pairs at index time and extract some fields. &lt;BR /&gt;
I have tried to follow the splunk guides and blog posts, but my indexed fields are not available. I can't post links yet unfortunately. &lt;BR /&gt;
transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SerilogKVPairs]
DELIMS = "{,}", ":"

[LogLevel]
REGEX = ^(?:[^ \n]* ){3}(?P&amp;lt;LogLevel&amp;gt;[^ ]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Extract fields from Serilog log inputs
TRANSFORMS-KVPairs= SerilogKVPairs
TRANSFORMS-LogLevel= LogLevel
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SerilogKVPairs]
INDEXED=true

[LogLevel]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if I search with a pipe to kv SerilogKVPairs it all works, I have searchable values from my Serilog files. &lt;BR /&gt;
But the fields are not available in the UI unless I pipe it through kv SerilogKVPairs. &lt;BR /&gt;
We would like them to be available on all logs without having to pipe through the KV command. &lt;BR /&gt;
Loglevel does not seem to be extracted either. &lt;/P&gt;

&lt;P&gt;Is there a log which shows what is going on here?&lt;BR /&gt;
Thanks&lt;BR /&gt;
Paul&lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 22:33:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363144#M7142</guid>
      <dc:creator>paulmilbank</dc:creator>
      <dc:date>2017-10-01T22:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363145#M7143</link>
      <description>&lt;P&gt;I have managed to get loglevel working as a field now. I am still unsure how to get the KV pairs to be extracted and available without needing to pipe search through KV. &lt;/P&gt;</description>
      <pubDate>Sun, 01 Oct 2017 23:05:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363145#M7143</guid>
      <dc:creator>paulmilbank</dc:creator>
      <dc:date>2017-10-01T23:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363146#M7144</link>
      <description>&lt;P&gt;Have you try this?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Configureindex-timefieldextraction"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.1/Data/Configureindex-timefieldextraction&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 01:22:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363146#M7144</guid>
      <dc:creator>xisura</dc:creator>
      <dc:date>2017-10-02T01:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363147#M7145</link>
      <description>&lt;P&gt;This is now resolved from the look of things. I changed TRANSFORMS to REPORTS for the KV Delimiter, Removed it from fields.conf and it seems to be working now.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 01:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363147#M7145</guid>
      <dc:creator>paulmilbank</dc:creator>
      <dc:date>2017-10-02T01:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363148#M7146</link>
      <description>&lt;P&gt;That is the guide I followed today and it has enabled me to sort this out now. Thanks very much. &lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2017 01:31:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363148#M7146</guid>
      <dc:creator>paulmilbank</dc:creator>
      <dc:date>2017-10-02T01:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract fields at index time?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363149#M7147</link>
      <description>&lt;P&gt;Final config looks like this if anyone ever needs it:&lt;BR /&gt;
transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[SerilogKVPairs]
DELIMS = "{,}", ":"

[LogLevel]
REGEX = ^(?:[^ \n]* ){3}(?P&amp;lt;loglevel&amp;gt;[^ ]+)
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;fields.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[LogLevel]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Extract fields from Serilog log inputs
REPORT-SerilogKVPairs= SerilogKVPairs
TRANSFORMS-LogLevel= LogLevel
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Oct 2017 01:54:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-extract-fields-at-index-time/m-p/363149#M7147</guid>
      <dc:creator>paulmilbank</dc:creator>
      <dc:date>2017-10-02T01:54:34Z</dc:date>
    </item>
  </channel>
</rss>

