Browse Source

Upload files to ''

master
thaleia-kavalierou 3 years ago
parent
commit
b19e52c256
  1. 14
      ascii.adoc
  2. 20
      ascii.adoc.html

14
ascii.adoc

@ -38,11 +38,15 @@ npm install
**** ****
For this part, we used the _linux_ lab room of the _swarmlab_ service. By uploading a number of containers, we create a swarm of machines. These machines can collect data of any type, but for the testing purposes of this project they will collect data from _/tmp/log-in_ directory. The automated data collection is achieved with the tool _fluentd_. With _ansible_, we managed to orchestrate the swarm machines in order to act the same way. For this part, we used the _linux_ lab room of the _swarmlab_ service. By uploading a number of containers, we create a swarm of machines. These machines can collect data of any type, but for the testing purposes of this project they will collect data from _/tmp/log-in_ directory. The automated data collection is achieved with the tool _fluentd_. With _ansible_, we managed to orchestrate the swarm machines in order to act the same way.
[%hardbreaks] [%hardbreaks]
From the Manager machine of the swarm, follow the steps: From the Manager machine of the swarm, run (in the fluentd directory):
....
make all
....
This will run the following files:
[%hardbreaks] [%hardbreaks]
<1> ./fluentd.yml.sh + <1> fluentd.yml.sh +
With this script, the system will be updated and ansible will be downloaded in the Manager machine. Then, the ansible playbook _fluentd.yml_ will run so that the required settings will be installed on every other machine of the swarm. With this script, the system will be updated and ansible will be downloaded in the Manager machine. Then, the ansible playbook _fluentd.yml_ will run so that the required settings will be installed on every other machine of the swarm.
<2> ./fluentd-config-update.yml.sh + <2> fluentd-config-update.yml.sh +
Run this script to set fluentd on every machine. The tool will collect data of the directory _/tmp/log-in_, where every machine of the swarm stores the intended data. Run this script to set fluentd on every machine. The tool will collect data of the directory _/tmp/log-in_, where every machine of the swarm stores the intended data.
**** ****
==== Second part: Storing data in a database ==== Second part: Storing data in a database
@ -60,7 +64,7 @@ After connecting with the machine, run this command to enter the database's inte
Use this database, where data from the swarm will be stored in a collection. Use this database, where data from the swarm will be stored in a collection.
<3> db.auth('app_swarmlab','app_swarmlab') + <3> db.auth('app_swarmlab','app_swarmlab') +
Connect as admin to the database. Connect as admin to the database.
<4> db.logs.find({}) + <4> db.logs.find({}).sort({_id:-1}) +
View logs. View logs in a descending order.
**** ****

20
ascii.adoc.html

@ -94,18 +94,26 @@ Collaborators:<br>
<p>For this part, we used the <em>linux</em> lab room of the <em>swarmlab</em> service. By uploading a number of containers, we create a swarm of machines. These machines can collect data of any type, but for the testing purposes of this project they will collect data from <em>/tmp/log-in</em> directory. The automated data collection is achieved with the tool <em>fluentd</em>. With <em>ansible</em>, we managed to orchestrate the swarm machines in order to act the same way.</p> <p>For this part, we used the <em>linux</em> lab room of the <em>swarmlab</em> service. By uploading a number of containers, we create a swarm of machines. These machines can collect data of any type, but for the testing purposes of this project they will collect data from <em>/tmp/log-in</em> directory. The automated data collection is achieved with the tool <em>fluentd</em>. With <em>ansible</em>, we managed to orchestrate the swarm machines in order to act the same way.</p>
</div> </div>
<div class="paragraph"> <div class="paragraph">
<p>From the Manager machine of the swarm, follow the steps:</p> <p>From the Manager machine of the swarm, run (in the fluentd directory):</p>
</div>
<div class="literalblock">
<div class="content">
<pre>make all</pre>
</div>
</div>
<div class="paragraph">
<p>This will run the following files:</p>
</div> </div>
<div class="colist arabic"> <div class="colist arabic">
<table> <table>
<tr> <tr>
<td><i class="conum" data-value="1"></i><b>1</b></td> <td><i class="conum" data-value="1"></i><b>1</b></td>
<td>./fluentd.yml.sh<br> <td>fluentd.yml.sh<br>
With this script, the system will be updated and ansible will be downloaded in the Manager machine. Then, the ansible playbook <em>fluentd.yml</em> will run so that the required settings will be installed on every other machine of the swarm.</td> With this script, the system will be updated and ansible will be downloaded in the Manager machine. Then, the ansible playbook <em>fluentd.yml</em> will run so that the required settings will be installed on every other machine of the swarm.</td>
</tr> </tr>
<tr> <tr>
<td><i class="conum" data-value="2"></i><b>2</b></td> <td><i class="conum" data-value="2"></i><b>2</b></td>
<td>./fluentd-config-update.yml.sh<br> <td>fluentd-config-update.yml.sh<br>
Run this script to set fluentd on every machine. The tool will collect data of the directory <em>/tmp/log-in</em>, where every machine of the swarm stores the intended data.</td> Run this script to set fluentd on every machine. The tool will collect data of the directory <em>/tmp/log-in</em>, where every machine of the swarm stores the intended data.</td>
</tr> </tr>
</table> </table>
@ -146,8 +154,8 @@ Connect as admin to the database.</td>
</tr> </tr>
<tr> <tr>
<td><i class="conum" data-value="4"></i><b>4</b></td> <td><i class="conum" data-value="4"></i><b>4</b></td>
<td>db.logs.find({})<br> <td>db.logs.find({}).sort({_id:-1})<br>
View logs.</td> View logs in a descending order.</td>
</tr> </tr>
</table> </table>
</div> </div>
@ -158,7 +166,7 @@ View logs.</td>
</div> </div>
<div id="footer"> <div id="footer">
<div id="footer-text"> <div id="footer-text">
Last updated 2021-06-11 20:47:01 +0300 Last updated 2021-06-12 20:10:54 +0300
</div> </div>
</div> </div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.6/styles/github.min.css">

Loading…
Cancel
Save