Quantcast
Channel: Questions in topic: "props.conf"
Viewing all articles
Browse latest Browse all 1485

How to edit my configurations to extract a multivalue field from an extracted field?

$
0
0
I am trying to extract fields for OpenDNS logs. These come in a CSV format: "2015-01-01 20:39:57","client1","client1,site1","1.1.1.1","2.2.2.2","Allowed","1 (A)","NOERROR","www.google.com.","Search Engines" The challenge here is that fields "identities" and "categories" are often multi-valued (also comma-separated). I went off the idea from here: https://answers.splunk.com/answers/112311/multi-value-field-extraction.html 1. Extract all the main fields 2. Do a second transform to extract the multi-values The first part works fine: **props.conf:** [opendns:dnslog] REPORT-opendns-fields = opendns_aws_s3 **transforms.conf:** [opendns_aws_s3] DELIMS = "," FIELDS = timestamp,granular_id,identities,internal_ip,external_ip,action,query_type,resp_code,domain,categories But now I have not split "identities" and "categories". So I added a second transform, to work on the categories field: **props.conf:** [opendns:dnslog] REPORT-opendns-fields = opendns_aws_s3 REPORT-opendns-category = opendns_aws_s3_category **transforms.conf:** [opendns_aws_s3_category] SOURCE_KEY=categories DELIMS = "," FIELDS = category MV_ADD=true Here I did something wrong, because this isn't working. I get no new field named "category", and the "categories" field is unchanged. Should I maybe not have added the FIELDS= entry? This was to name the new field. But that was perhaps not a good idea? How else can I name this as a new field?

Viewing all articles
Browse latest Browse all 1485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>