Make Data Compatible With World Map Widget - Example 3

Make data compatible with World Map Widget using the worldMap() function and average latency as magnitude of the points

Query

flowchart LR; %%{init: {"flowchart": {"defaultRenderer": "elk"}} }%% repo{{Events}} 0{{Aggregate}} result{{Result Set}} repo --> 0 0 --> result
logscale
worldMap(ip=myIpField, magnitude=avg(latency))

Introduction

The World Map Widget displays geographical data on a world map. Typical fields used in the World Map Widget are lat, lon, geohash, precision, and magnitude.

The worldMap() function is a helper function to produce data compatible with the World Map Widget.

In this example, the worldMap function is used with the magnitude function to calculate the magnitude (weight) of each bucket. This value is used to determine the size or opacity of the world map markers.

The worldMap() function will automatically bucket the locations to reduce the number of points.

Step-by-Step

  1. Starting with the source repository events.

  2. flowchart LR; %%{init: {"flowchart": {"defaultRenderer": "elk"}} }%% repo{{Events}} 0{{Aggregate}} result{{Result Set}} repo --> 0 0 --> result style 0 fill:#ff0000,stroke-width:4px,stroke:#000;
    logscale
    worldMap(ip=myIpField, magnitude=avg(latency))

    Plots IP addresses on the world map and uses average latency as magnitude of the points.

  3. Event Result set.

Summary and Results

The query with the worldMap() function is used to visualize and present location data, in this example IP adresses and the average latency, in a World Map Widget. The query is useful, for example, to identify performance patterns based on latency across different regions, or to identify potential network bottlenecks or performance issues in specific locations.

Visualization of IP addresses ond average latency values on a global map is useful in network monitoring and performance analysis to quickly spot geographical patterns in network latency. Larger average latency values will create bigger/more intense points on the world map.