Hi nirt,
Using the example data provided you can set up your props.conf and transforms.conf in your apps local directory. For example:
props.conf
...
[my_sourcetype]
DATETIME_CONFIG = CURRENT
LINE_BREAKER = ([\n\r]+)\s*<[MC]+
SHOULD_LINEMERGE = false
NO_BINARY_CHECK = true
category = Custom
pulldown_type = true
disabled = false
TRANSFORMS-newhost = newhost
This will break the events by lines beginning with <(C|M) and the following will extract the hostname value and index it as host.
transforms.conf
...
[newhost]
REGEX = ^\s*<(?:MOBILE|CENTRAL)\s+hostname="(\w+)">
DEST_KEY = MetaData:Host
FORMAT = host::$1
The abc values will also be auto extracted due to the semantic logging, i.e. field=value.
Hope this helps.
... View more