- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
prachisaxena
Explorer
07-22-2016
12:43 AM
example as below.
The output that i am receiving is separated by commas.. it is possible to get the output separated by pipe
sample text: HAM|582431977|PANASONIC INSURANCE SERVICE CO|xyz@email.com
Current output: HAM,PANASONIC INSURANCE SERVICE CO
Required output: HAM | PANASONIC INSURANCE SERVICE CO
props.conf
[sourcetype]
TRANSFORMS-set = setnullci,setparsingci
REPORT-ci = REPORT-ci
transforms.conf
[setparsingci]
REGEX = (?P[^|])|(?P[^|])|(?P[^|])|(?P[^|])
DEST_KEY = _raw
FORMAT = $1,$3
[REPORT-ci]
DELIMS = ","
FIELDS = "field1","field3"
1 Solution
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
07-22-2016
04:41 AM
Change the delimiter used in transforms.conf.
FORMAT = $1|$3
FIELDS = "field1"|"field3"
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

richgalloway

SplunkTrust
07-22-2016
04:41 AM
Change the delimiter used in transforms.conf.
FORMAT = $1|$3
FIELDS = "field1"|"field3"
---
If this reply helps you, Karma would be appreciated.
If this reply helps you, Karma would be appreciated.
