When streaming data into the system, you may encounter some cases where you’ll need to edit manually, using JavaScript, the mapping that the system does to route to specific source types, application and services.

Here are some examples:
● There is no source tag
● The source tag recognized by Loom does not represent the source type
● You wish to apply a more sophisticated logical partition of your data (e.g. separate same sources coming from different hosts that representing different customers)

If this is the case, you will need to go to the Data Inputs screen and open the “mapping” option under the specific Data Input. (Note:  This must be done after at least SOME data has started streaming to Loom).

To the right of each Data Input, there is a options button (three ellipses). Choose the “mapping” option and use the JavaScript console to map specific instances to their correct source types and/or split the data input into the correct applications and services.

In the following example we can see a CDN log sent through beats in JSON format. The JavaScript is used to find all relevant tags in order to create the source type / application / Service mapping.

Make sure that your JavaScript code covers all sources (use the drop-down menu to make sure all source sources are mapped correctly)

Don't forget to scroll through (using the right left arrows) a few different samples to make sure you have covered all variations. 

Did this answer your question?