All Apps and Add-ons

field extractions with delims

a212830
Champion

Hi,

I'm trying to create some fields using the DELIM option in transforms.conf. My file is whitespace separated, and here are my props/transforms:

props:
[bcoat_proxysg_streaming]
REPORT-main=delimExtractions
TRANSFORMS-sourcetype = nullPound
MAX_TIMESTAMP_LOOKAHEAD = 20
SHOULD_LINEMERGE = false
TZ = UTC

transforms:
[nullPound]
REGEX = ^#
DEST_KEY=queue
FORMAT=nullQueue

[delimExtractions]
DELIMS=" "
FIELDS="date", "time", "c-ip", "cs-username", "sc-filter-result", "cs-method", "cs-uri", "sc-status", "cs(Referer)", "cs-categories", "cs-auth-group", "x-exception-
id", "s-action", "cs(User-Agent)", "x-duration", "sc-bytes", "cs-bytes", "cs-uri-scheme", "cs-host", "cs-uri-port", "cs-uri-path", "cs-uri-query", "cs-uri-extension
", "protocol", "transport", "channelURL"

This looks pretty basic to me, but the fields aren't being shown in the SH. The files are being processed on a HF and sent to an indexer. I put these entries on the HF.

Am I missing something?

Tags (1)
0 Karma
1 Solution

Takajian
Builder

There are two types of field extractions which are search time field extraction and index time field extraction. Your delimExtraction is for search time extraction, not index time. Therefore, you should put it on SH, not HF. Please note that your nullqueue setting is processed in index time, so it should be left on HF. Please try this and confirm if it solve the issue.

View solution in original post

Takajian
Builder

There are two types of field extractions which are search time field extraction and index time field extraction. Your delimExtraction is for search time extraction, not index time. Therefore, you should put it on SH, not HF. Please note that your nullqueue setting is processed in index time, so it should be left on HF. Please try this and confirm if it solve the issue.

a212830
Champion

Worked! Thanks.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...