My universal forwarders (several of them) are now forwarding my Exchange messagetracking logs as sourcetype=messagetracking and they are indexed as such. I'm trying to add "props" and/or "transforms" on that indexer, although these terms confuse me.
I'm further confused by some articles mentioning that this needs to be done at each forwarder (which seems absolutely ludicrous to me) and some even state it needs to be done BOTH at each forwarder as well as the indexer.
As per some suggestions, I have tried editing "./apps/search/local/props.conf" like this:
[messagetracking]
FIELD_DELIMITER=,
FIELDS="exch_date_time","exch_client_ip","exch_client_hostname","exch_server_ip","exch_server_hostname","exch_source_context","exch_connector_id","exch_source","exch_event_id","exch_internal_message_id","exch_message_id","exch_recipient_address","exch_recipient_status","exch_total_bytes","exch_recipient_count","exch_related_recipient_address","exch_reference","exch_message_subject","exch_sender_address","exch_return_path","exch_message_info","exch_directionality","exch_tenant_id","exch_original_client_ip","exch_original_server_ip","exch_custom_data"
Others suggest my "./etc/system/local/props.conf" should contain something like this:
[messagetracking]
SHOULD_LINEMERGE=false
KV_MODE=none
REPORT-messagetracking=messagetracking-transform
...and then my "./etc/system/local/transforms.conf" should contain something like this:
[messagetracking-transform]
DELIMS=","
FIELDS="exch_date_time","exch_client_ip","exch_client_hostname","exch_server_ip","exch_server_hostname","exch_source_context","exch_connector_id","exch_source","exch_event_id","exch_internal_message_id","exch_message_id","exch_recipient_address","exch_recipient_status","exch_total_bytes","exch_recipient_count","exch_related_recipient_address","exch_reference","exch_message_subject","exch_sender_address","exch_return_path","exch_message_info","exch_directionality","exch_tenant_id","exch_original_client_ip","exch_original_server_ip","exch_custom_data"
But that doesn't seem to help either. And maybe that's because "system" is during ingest while "search" makes the conversion from a raw stream into indexable fields occur during search, which may be a good thing for my old data but seems inecfficient for new data.
Anyway, how to test these things...
$ ./splunk test
Command error: Additional arguments are needed for the 'test' command. Please type "splunk help test" for usage and examples.
Okay?
$ ./splunk help test
The 'test' and 'train' commands have been deprecated.
Type "help [object|topic]" to view help on a specific object or topic.
Well, I guess we won't get much useful information there. What about this suggestion from Google:
$ ./splunk cmd parsetest file /tmp/test.log messagetracking
Conf is currently being modified by process 24011.
Conf is currently being modified by process 24011.
Conf is currently being modified by process 24011.
Right. I'm completely stuck, transformation doesn't seem to be happening at all and I have no clue why. Anyone care to give me a nudge in the right direction?
... View more