You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -78,6 +78,27 @@ Location of error logs for apache if it fails to start
78
78
79
79
/var/log/apache2/
80
80
81
+
### [Optional] Setup AWS Cloudwatch Agent logging
82
+
83
+
If you are running alyx as an EC2 instance on AWS, you can easily add the AWS Cloudwatch agent to the server to ease log
84
+
evaluation and alerting. This can also be done with a non-ec2 server, but is likely not worth it unless you are already
85
+
using Cloudwatch for other logs.
86
+
87
+
To give an overview of the installation process for an EC2 instance:
88
+
* Create an IAM role that enables the agent to collect metrics from the server and attach the role to the server.
89
+
* Download the agent package to the instance.
90
+
* Modify the CloudWatch agent configuration file, specify the metrics and the log files that you want to collect.
91
+
* Install and start the agent on your server.
92
+
* Verify in Cloudwatch
93
+
* you are now able to generate alerts from the metrics of interest
94
+
* you are now shipping the logs files to your log group
95
+
96
+
Follow the latest instructions from the official [AWS Cloudwatch Agent documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/Install-CloudWatch-Agent.html).
field=models.ForeignKey(help_text='The subject on which this action was performed', on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)ss', to='subjects.subject'),
19
+
),
20
+
migrations.AlterField(
21
+
model_name='otheraction',
22
+
name='subject',
23
+
field=models.ForeignKey(help_text='The subject on which this action was performed', on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)ss', to='subjects.subject'),
24
+
),
25
+
migrations.AlterField(
26
+
model_name='session',
27
+
name='subject',
28
+
field=models.ForeignKey(help_text='The subject on which this action was performed', on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)ss', to='subjects.subject'),
29
+
),
30
+
migrations.AlterField(
31
+
model_name='surgery',
32
+
name='subject',
33
+
field=models.ForeignKey(help_text='The subject on which this action was performed', on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)ss', to='subjects.subject'),
34
+
),
35
+
migrations.AlterField(
36
+
model_name='virusinjection',
37
+
name='subject',
38
+
field=models.ForeignKey(help_text='The subject on which this action was performed', on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)ss', to='subjects.subject'),
39
+
),
40
+
migrations.AlterField(
41
+
model_name='waterrestriction',
42
+
name='subject',
43
+
field=models.ForeignKey(help_text='The subject on which this action was performed', on_delete=django.db.models.deletion.CASCADE, related_name='%(app_label)s_%(class)ss', to='subjects.subject'),
0 commit comments