Host, in this context, means a standalone Linux host or Virtual Machine.
This topic walks you through a setup procedure, and then through the two basic AppScope techniques:
We assume that you have an Edge Leader running in Cribl.Cloud, and that you want to add a new Edge Node to its Fleet, and to scope processes running on the new Edge Node.
You can easily modify these instructions to add more than one Edge Node and then use Scope by Rules to scope processes on the entire Fleet.
In Cribl.Cloud:
default_fleet
is fine.cribl
to root
.Click Copy script and dismiss the modal.
On the Linux host we want to observe with Edge:
Edit the script so that it runs as root, by adding sudo
to the bash command at the end.
curl 'https://...%2Fcribl' | bash -
... should be edited as follows:curl 'https://... %2Fcribl' | sudo bash -
Return to Cribl.Cloud UI to verify that the new Node is present:
At this point, Edge is installed on a Linux container in its default location (/opt/cribl
), is running, and is connected to the Edge Leader.
Still in Edge’s List View tab:
On the Linux host:
top
. Back in Edge:
Within seconds, top
should appear in the process list. (If you don’t see it, try filtering by command.) At this point top
is running but is not yet instrumented by AppScope.
top
command's row to open the Process: top drawer.In the AppScope tab, select the AppScope Configuration we want to use for this process.
A sensible AppScope configuration ...
. Leave the default Source as in_appscope
.
777
.Click Start monitoring.
Now you’ll want to confirm that Edge is receiving AppScope data for the scoped top
process.
On the Edge Leader, navigate to More > Sources and select AppScope to open the Source page.
In the row where ID
is in_appscope
:
$CRIBL_HOME/state/appscope.sock
. On the Linux host:
top
. On the Edge Leader:
ID
is in_appscope
.In the AppScope Rules tab, under Rules, click Add Rule and complete the Rule as follows:
top
A sensible AppScope configuration ...
. Next:
Wait for the changes to be deployed to the Edge Node – probably around 30 seconds.
Back on the Linux host:
top
process.You should now see events flowing from two top
processes – they’ll have different PIDs.
Return to Edge’s List View tab – the AppScope column should indicate that both top
processes are being scoped.
This gets to what’s so powerful about Rules: You can start processes after setting things up, and they get scoped.
Optionally, you can try the other two configurations and see how the scoped data changes. For the config that has payloads enabled, curl
and wget
are good choices.
If you want to do more, consider creating Routes and Pipelines in Cribl Edge, to send AppScope data to your favorite Destination(s).