Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Add CloudWatch logs entrypoint documentation (#2332)

sarayourfriend9cbb8a460cbb
diff --git a/documentation/Pipfile b/documentation/Pipfile
index 9ab4e9956..c12e85561 100644
--- a/documentation/Pipfile
+++ b/documentation/Pipfile
@@ -3,13 +3,12 @@ url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
-[packages]
-sphinx-notfound-page = "*"
-
[dev-packages]
sphinx = "*"
sphinx-autobuild = "*"
sphinx-copybutton = "*"
+sphinx-reredirects = "*"
+sphinx-notfound-page = "*"
furo = "*"
myst-parser = "*"
sphinxcontrib-mermaid = "*"
diff --git a/documentation/Pipfile.lock b/documentation/Pipfile.lock
index 2ea8c6355..7d6ccf27a 100644
--- a/documentation/Pipfile.lock
+++ b/documentation/Pipfile.lock
@@ -1,7 +1,7 @@
{
"_meta": {
"hash": {
- "sha256": "0977f7d976a3b2cdd1d47a0ed176402fcdf2e05d43ea344806b759c2e7d2e373"
+ "sha256": "3074c0e07db3296cac73625f4cf4e2cd0080e04d12a78bf7ee28455e887e7468"
},
"pipfile-spec": 6,
"requires": {
@@ -15,304 +15,7 @@
}
]
},
- "default": {
- "alabaster": {
- "hashes": [
- "sha256:1ee19aca801bbabb5ba3f5f258e4422dfa86f82f3e9cefb0859b283cdd7f62a3",
- "sha256:a27a4a084d5e690e16e01e03ad2b2e552c61a65469419b907243193de1a84ae2"
- ],
- "markers": "python_version >= '3.6'",
- "version": "==0.7.13"
- },
- "babel": {
- "hashes": [
- "sha256:b4246fb7677d3b98f501a39d43396d3cafdc8eadb045f4a31be01863f655c610",
- "sha256:cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==2.12.1"
- },
- "certifi": {
- "hashes": [
- "sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7",
- "sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716"
- ],
- "markers": "python_version >= '3.6'",
- "version": "==2023.5.7"
- },
- "charset-normalizer": {
- "hashes": [
- "sha256:04afa6387e2b282cf78ff3dbce20f0cc071c12dc8f685bd40960cc68644cfea6",
- "sha256:04eefcee095f58eaabe6dc3cc2262f3bcd776d2c67005880894f447b3f2cb9c1",
- "sha256:0be65ccf618c1e7ac9b849c315cc2e8a8751d9cfdaa43027d4f6624bd587ab7e",
- "sha256:0c95f12b74681e9ae127728f7e5409cbbef9cd914d5896ef238cc779b8152373",
- "sha256:0ca564606d2caafb0abe6d1b5311c2649e8071eb241b2d64e75a0d0065107e62",
- "sha256:10c93628d7497c81686e8e5e557aafa78f230cd9e77dd0c40032ef90c18f2230",
- "sha256:11d117e6c63e8f495412d37e7dc2e2fff09c34b2d09dbe2bee3c6229577818be",
- "sha256:11d3bcb7be35e7b1bba2c23beedac81ee893ac9871d0ba79effc7fc01167db6c",
- "sha256:12a2b561af122e3d94cdb97fe6fb2bb2b82cef0cdca131646fdb940a1eda04f0",
- "sha256:12d1a39aa6b8c6f6248bb54550efcc1c38ce0d8096a146638fd4738e42284448",
- "sha256:1435ae15108b1cb6fffbcea2af3d468683b7afed0169ad718451f8db5d1aff6f",
- "sha256:1c60b9c202d00052183c9be85e5eaf18a4ada0a47d188a83c8f5c5b23252f649",
- "sha256:1e8fcdd8f672a1c4fc8d0bd3a2b576b152d2a349782d1eb0f6b8e52e9954731d",
- "sha256:20064ead0717cf9a73a6d1e779b23d149b53daf971169289ed2ed43a71e8d3b0",
- "sha256:21fa558996782fc226b529fdd2ed7866c2c6ec91cee82735c98a197fae39f706",
- "sha256:22908891a380d50738e1f978667536f6c6b526a2064156203d418f4856d6e86a",
- "sha256:3160a0fd9754aab7d47f95a6b63ab355388d890163eb03b2d2b87ab0a30cfa59",
- "sha256:322102cdf1ab682ecc7d9b1c5eed4ec59657a65e1c146a0da342b78f4112db23",
- "sha256:34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5",
- "sha256:3573d376454d956553c356df45bb824262c397c6e26ce43e8203c4c540ee0acb",
- "sha256:3747443b6a904001473370d7810aa19c3a180ccd52a7157aacc264a5ac79265e",
- "sha256:38e812a197bf8e71a59fe55b757a84c1f946d0ac114acafaafaf21667a7e169e",
- "sha256:3a06f32c9634a8705f4ca9946d667609f52cf130d5548881401f1eb2c39b1e2c",
- "sha256:3a5fc78f9e3f501a1614a98f7c54d3969f3ad9bba8ba3d9b438c3bc5d047dd28",
- "sha256:3d9098b479e78c85080c98e1e35ff40b4a31d8953102bb0fd7d1b6f8a2111a3d",
- "sha256:3dc5b6a8ecfdc5748a7e429782598e4f17ef378e3e272eeb1340ea57c9109f41",
- "sha256:4155b51ae05ed47199dc5b2a4e62abccb274cee6b01da5b895099b61b1982974",
- "sha256:49919f8400b5e49e961f320c735388ee686a62327e773fa5b3ce6721f7e785ce",
- "sha256:53d0a3fa5f8af98a1e261de6a3943ca631c526635eb5817a87a59d9a57ebf48f",
- "sha256:5f008525e02908b20e04707a4f704cd286d94718f48bb33edddc7d7b584dddc1",
- "sha256:628c985afb2c7d27a4800bfb609e03985aaecb42f955049957814e0491d4006d",
- "sha256:65ed923f84a6844de5fd29726b888e58c62820e0769b76565480e1fdc3d062f8",
- "sha256:6734e606355834f13445b6adc38b53c0fd45f1a56a9ba06c2058f86893ae8017",
- "sha256:6baf0baf0d5d265fa7944feb9f7451cc316bfe30e8df1a61b1bb08577c554f31",
- "sha256:6f4f4668e1831850ebcc2fd0b1cd11721947b6dc7c00bf1c6bd3c929ae14f2c7",
- "sha256:6f5c2e7bc8a4bf7c426599765b1bd33217ec84023033672c1e9a8b35eaeaaaf8",
- "sha256:6f6c7a8a57e9405cad7485f4c9d3172ae486cfef1344b5ddd8e5239582d7355e",
- "sha256:7381c66e0561c5757ffe616af869b916c8b4e42b367ab29fedc98481d1e74e14",
- "sha256:73dc03a6a7e30b7edc5b01b601e53e7fc924b04e1835e8e407c12c037e81adbd",
- "sha256:74db0052d985cf37fa111828d0dd230776ac99c740e1a758ad99094be4f1803d",
- "sha256:75f2568b4189dda1c567339b48cba4ac7384accb9c2a7ed655cd86b04055c795",
- "sha256:78cacd03e79d009d95635e7d6ff12c21eb89b894c354bd2b2ed0b4763373693b",
- "sha256:80d1543d58bd3d6c271b66abf454d437a438dff01c3e62fdbcd68f2a11310d4b",
- "sha256:830d2948a5ec37c386d3170c483063798d7879037492540f10a475e3fd6f244b",
- "sha256:891cf9b48776b5c61c700b55a598621fdb7b1e301a550365571e9624f270c203",
- "sha256:8f25e17ab3039b05f762b0a55ae0b3632b2e073d9c8fc88e89aca31a6198e88f",
- "sha256:9a3267620866c9d17b959a84dd0bd2d45719b817245e49371ead79ed4f710d19",
- "sha256:a04f86f41a8916fe45ac5024ec477f41f886b3c435da2d4e3d2709b22ab02af1",
- "sha256:aaf53a6cebad0eae578f062c7d462155eada9c172bd8c4d250b8c1d8eb7f916a",
- "sha256:abc1185d79f47c0a7aaf7e2412a0eb2c03b724581139193d2d82b3ad8cbb00ac",
- "sha256:ac0aa6cd53ab9a31d397f8303f92c42f534693528fafbdb997c82bae6e477ad9",
- "sha256:ac3775e3311661d4adace3697a52ac0bab17edd166087d493b52d4f4f553f9f0",
- "sha256:b06f0d3bf045158d2fb8837c5785fe9ff9b8c93358be64461a1089f5da983137",
- "sha256:b116502087ce8a6b7a5f1814568ccbd0e9f6cfd99948aa59b0e241dc57cf739f",
- "sha256:b82fab78e0b1329e183a65260581de4375f619167478dddab510c6c6fb04d9b6",
- "sha256:bd7163182133c0c7701b25e604cf1611c0d87712e56e88e7ee5d72deab3e76b5",
- "sha256:c36bcbc0d5174a80d6cccf43a0ecaca44e81d25be4b7f90f0ed7bcfbb5a00909",
- "sha256:c3af8e0f07399d3176b179f2e2634c3ce9c1301379a6b8c9c9aeecd481da494f",
- "sha256:c84132a54c750fda57729d1e2599bb598f5fa0344085dbde5003ba429a4798c0",
- "sha256:cb7b2ab0188829593b9de646545175547a70d9a6e2b63bf2cd87a0a391599324",
- "sha256:cca4def576f47a09a943666b8f829606bcb17e2bc2d5911a46c8f8da45f56755",
- "sha256:cf6511efa4801b9b38dc5546d7547d5b5c6ef4b081c60b23e4d941d0eba9cbeb",
- "sha256:d16fd5252f883eb074ca55cb622bc0bee49b979ae4e8639fff6ca3ff44f9f854",
- "sha256:d2686f91611f9e17f4548dbf050e75b079bbc2a82be565832bc8ea9047b61c8c",
- "sha256:d7fc3fca01da18fbabe4625d64bb612b533533ed10045a2ac3dd194bfa656b60",
- "sha256:dd5653e67b149503c68c4018bf07e42eeed6b4e956b24c00ccdf93ac79cdff84",
- "sha256:de5695a6f1d8340b12a5d6d4484290ee74d61e467c39ff03b39e30df62cf83a0",
- "sha256:e0ac8959c929593fee38da1c2b64ee9778733cdf03c482c9ff1d508b6b593b2b",
- "sha256:e1b25e3ad6c909f398df8921780d6a3d120d8c09466720226fc621605b6f92b1",
- "sha256:e633940f28c1e913615fd624fcdd72fdba807bf53ea6925d6a588e84e1151531",
- "sha256:e89df2958e5159b811af9ff0f92614dabf4ff617c03a4c1c6ff53bf1c399e0e1",
- "sha256:ea9f9c6034ea2d93d9147818f17c2a0860d41b71c38b9ce4d55f21b6f9165a11",
- "sha256:f645caaf0008bacf349875a974220f1f1da349c5dbe7c4ec93048cdc785a3326",
- "sha256:f8303414c7b03f794347ad062c0516cee0e15f7a612abd0ce1e25caf6ceb47df",
- "sha256:fca62a8301b605b954ad2e9c3666f9d97f63872aa4efcae5492baca2056b74ab"
- ],
- "markers": "python_full_version >= '3.7.0'",
- "version": "==3.1.0"
- },
- "docutils": {
- "hashes": [
- "sha256:96f387a2c5562db4476f09f13bbab2192e764cac08ebbf3a34a95d9b1e4a59d6",
- "sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==0.20.1"
- },
- "idna": {
- "hashes": [
- "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4",
- "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
- ],
- "markers": "python_version >= '3.5'",
- "version": "==3.4"
- },
- "imagesize": {
- "hashes": [
- "sha256:0d8d18d08f840c19d0ee7ca1fd82490fdc3729b7ac93f49870406ddde8ef8d8b",
- "sha256:69150444affb9cb0d5cc5a92b3676f0b2fb7cd9ae39e947a5e11a36b4497cd4a"
- ],
- "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
- "version": "==1.4.1"
- },
- "jinja2": {
- "hashes": [
- "sha256:31351a702a408a9e7595a8fc6150fc3f43bb6bf7e319770cbc0db9df9437e852",
- "sha256:6088930bfe239f0e6710546ab9c19c9ef35e29792895fed6e6e31a023a182a61"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==3.1.2"
- },
- "markupsafe": {
- "hashes": [
- "sha256:0576fe974b40a400449768941d5d0858cc624e3249dfd1e0c33674e5c7ca7aed",
- "sha256:085fd3201e7b12809f9e6e9bc1e5c96a368c8523fad5afb02afe3c051ae4afcc",
- "sha256:090376d812fb6ac5f171e5938e82e7f2d7adc2b629101cec0db8b267815c85e2",
- "sha256:0b462104ba25f1ac006fdab8b6a01ebbfbce9ed37fd37fd4acd70c67c973e460",
- "sha256:137678c63c977754abe9086a3ec011e8fd985ab90631145dfb9294ad09c102a7",
- "sha256:1bea30e9bf331f3fef67e0a3877b2288593c98a21ccb2cf29b74c581a4eb3af0",
- "sha256:22152d00bf4a9c7c83960521fc558f55a1adbc0631fbb00a9471e097b19d72e1",
- "sha256:22731d79ed2eb25059ae3df1dfc9cb1546691cc41f4e3130fe6bfbc3ecbbecfa",
- "sha256:2298c859cfc5463f1b64bd55cb3e602528db6fa0f3cfd568d3605c50678f8f03",
- "sha256:28057e985dace2f478e042eaa15606c7efccb700797660629da387eb289b9323",
- "sha256:2e7821bffe00aa6bd07a23913b7f4e01328c3d5cc0b40b36c0bd81d362faeb65",
- "sha256:2ec4f2d48ae59bbb9d1f9d7efb9236ab81429a764dedca114f5fdabbc3788013",
- "sha256:340bea174e9761308703ae988e982005aedf427de816d1afe98147668cc03036",
- "sha256:40627dcf047dadb22cd25ea7ecfe9cbf3bbbad0482ee5920b582f3809c97654f",
- "sha256:40dfd3fefbef579ee058f139733ac336312663c6706d1163b82b3003fb1925c4",
- "sha256:4cf06cdc1dda95223e9d2d3c58d3b178aa5dacb35ee7e3bbac10e4e1faacb419",
- "sha256:50c42830a633fa0cf9e7d27664637532791bfc31c731a87b202d2d8ac40c3ea2",
- "sha256:55f44b440d491028addb3b88f72207d71eeebfb7b5dbf0643f7c023ae1fba619",
- "sha256:608e7073dfa9e38a85d38474c082d4281f4ce276ac0010224eaba11e929dd53a",
- "sha256:63ba06c9941e46fa389d389644e2d8225e0e3e5ebcc4ff1ea8506dce646f8c8a",
- "sha256:65608c35bfb8a76763f37036547f7adfd09270fbdbf96608be2bead319728fcd",
- "sha256:665a36ae6f8f20a4676b53224e33d456a6f5a72657d9c83c2aa00765072f31f7",
- "sha256:6d6607f98fcf17e534162f0709aaad3ab7a96032723d8ac8750ffe17ae5a0666",
- "sha256:7313ce6a199651c4ed9d7e4cfb4aa56fe923b1adf9af3b420ee14e6d9a73df65",
- "sha256:7668b52e102d0ed87cb082380a7e2e1e78737ddecdde129acadb0eccc5423859",
- "sha256:7df70907e00c970c60b9ef2938d894a9381f38e6b9db73c5be35e59d92e06625",
- "sha256:7e007132af78ea9df29495dbf7b5824cb71648d7133cf7848a2a5dd00d36f9ff",
- "sha256:835fb5e38fd89328e9c81067fd642b3593c33e1e17e2fdbf77f5676abb14a156",
- "sha256:8bca7e26c1dd751236cfb0c6c72d4ad61d986e9a41bbf76cb445f69488b2a2bd",
- "sha256:8db032bf0ce9022a8e41a22598eefc802314e81b879ae093f36ce9ddf39ab1ba",
- "sha256:99625a92da8229df6d44335e6fcc558a5037dd0a760e11d84be2260e6f37002f",
- "sha256:9cad97ab29dfc3f0249b483412c85c8ef4766d96cdf9dcf5a1e3caa3f3661cf1",
- "sha256:a4abaec6ca3ad8660690236d11bfe28dfd707778e2442b45addd2f086d6ef094",
- "sha256:a6e40afa7f45939ca356f348c8e23048e02cb109ced1eb8420961b2f40fb373a",
- "sha256:a6f2fcca746e8d5910e18782f976489939d54a91f9411c32051b4aab2bd7c513",
- "sha256:a806db027852538d2ad7555b203300173dd1b77ba116de92da9afbc3a3be3eed",
- "sha256:abcabc8c2b26036d62d4c746381a6f7cf60aafcc653198ad678306986b09450d",
- "sha256:b8526c6d437855442cdd3d87eede9c425c4445ea011ca38d937db299382e6fa3",
- "sha256:bb06feb762bade6bf3c8b844462274db0c76acc95c52abe8dbed28ae3d44a147",
- "sha256:c0a33bc9f02c2b17c3ea382f91b4db0e6cde90b63b296422a939886a7a80de1c",
- "sha256:c4a549890a45f57f1ebf99c067a4ad0cb423a05544accaf2b065246827ed9603",
- "sha256:ca244fa73f50a800cf8c3ebf7fd93149ec37f5cb9596aa8873ae2c1d23498601",
- "sha256:cf877ab4ed6e302ec1d04952ca358b381a882fbd9d1b07cccbfd61783561f98a",
- "sha256:d9d971ec1e79906046aa3ca266de79eac42f1dbf3612a05dc9368125952bd1a1",
- "sha256:da25303d91526aac3672ee6d49a2f3db2d9502a4a60b55519feb1a4c7714e07d",
- "sha256:e55e40ff0cc8cc5c07996915ad367fa47da6b3fc091fdadca7f5403239c5fec3",
- "sha256:f03a532d7dee1bed20bc4884194a16160a2de9ffc6354b3878ec9682bb623c54",
- "sha256:f1cd098434e83e656abf198f103a8207a8187c0fc110306691a2e94a78d0abb2",
- "sha256:f2bfb563d0211ce16b63c7cb9395d2c682a23187f54c3d79bfec33e6705473c6",
- "sha256:f8ffb705ffcf5ddd0e80b65ddf7bed7ee4f5a441ea7d3419e861a12eaf41af58"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==2.1.2"
- },
- "packaging": {
- "hashes": [
- "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61",
- "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==23.1"
- },
- "pygments": {
- "hashes": [
- "sha256:8ace4d3c1dd481894b2005f560ead0f9f19ee64fe983366be1a21e171d12775c",
- "sha256:db2db3deb4b4179f399a09054b023b6a586b76499d36965813c71aa8ed7b5fd1"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==2.15.1"
- },
- "requests": {
- "hashes": [
- "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f",
- "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==2.31.0"
- },
- "snowballstemmer": {
- "hashes": [
- "sha256:09b16deb8547d3412ad7b590689584cd0fe25ec8db3be37788be3810cbf19cb1",
- "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a"
- ],
- "version": "==2.2.0"
- },
- "sphinx": {
- "hashes": [
- "sha256:60c5e04756c1709a98845ed27a2eed7a556af3993afb66e77fec48189f742616",
- "sha256:61e025f788c5977d9412587e733733a289e2b9fdc2fef8868ddfbfc4ccfe881d"
- ],
- "markers": "python_version >= '3.8'",
- "version": "==7.0.1"
- },
- "sphinx-notfound-page": {
- "hashes": [
- "sha256:c4867b345afccef72de71fb410c412540dfbb5c2de0dc06bde70b331b8f30469",
- "sha256:f728403280026b84c234540bebbed7f710b9ea582e7348a35a5becefe4024332"
- ],
- "index": "pypi",
- "version": "==0.8.3"
- },
- "sphinxcontrib-applehelp": {
- "hashes": [
- "sha256:29d341f67fb0f6f586b23ad80e072c8e6ad0b48417db2bde114a4c9746feb228",
- "sha256:828f867945bbe39817c210a1abfd1bc4895c8b73fcaade56d45357a348a07d7e"
- ],
- "markers": "python_version >= '3.8'",
- "version": "==1.0.4"
- },
- "sphinxcontrib-devhelp": {
- "hashes": [
- "sha256:8165223f9a335cc1af7ffe1ed31d2871f325254c0423bc0c4c7cd1c1e4734a2e",
- "sha256:ff7f1afa7b9642e7060379360a67e9c41e8f3121f2ce9164266f61b9f4b338e4"
- ],
- "markers": "python_version >= '3.5'",
- "version": "==1.0.2"
- },
- "sphinxcontrib-htmlhelp": {
- "hashes": [
- "sha256:0cbdd302815330058422b98a113195c9249825d681e18f11e8b1f78a2f11efff",
- "sha256:c38cb46dccf316c79de6e5515e1770414b797162b23cd3d06e67020e1d2a6903"
- ],
- "markers": "python_version >= '3.8'",
- "version": "==2.0.1"
- },
- "sphinxcontrib-jsmath": {
- "hashes": [
- "sha256:2ec2eaebfb78f3f2078e73666b1415417a116cc848b72e5172e596c871103178",
- "sha256:a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"
- ],
- "markers": "python_version >= '3.5'",
- "version": "==1.0.1"
- },
- "sphinxcontrib-qthelp": {
- "hashes": [
- "sha256:4c33767ee058b70dba89a6fc5c1892c0d57a54be67ddd3e7875a18d14cba5a72",
- "sha256:bd9fc24bcb748a8d51fd4ecaade681350aa63009a347a8c14e637895444dfab6"
- ],
- "markers": "python_version >= '3.5'",
- "version": "==1.0.3"
- },
- "sphinxcontrib-serializinghtml": {
- "hashes": [
- "sha256:352a9a00ae864471d3a7ead8d7d79f5fc0b57e8b3f95e9867eb9eb28999b92fd",
- "sha256:aa5f6de5dfdf809ef505c4895e51ef5c9eac17d0f287933eb49ec495280b6952"
- ],
- "markers": "python_version >= '3.5'",
- "version": "==1.1.5"
- },
- "urllib3": {
- "hashes": [
- "sha256:61717a1095d7e155cdb737ac7bb2f4324a858a1e2e6466f6d03ff630ca68d3cc",
- "sha256:d055c2f9d38dc53c808f6fdc8eab7360b6fdbbde02340ed25cfbcd817c62469e"
- ],
- "markers": "python_version >= '3.7'",
- "version": "==2.0.2"
- }
- },
+ "default": {},
"develop": {
"alabaster": {
"hashes": [
@@ -437,11 +140,11 @@
},
"docutils": {
"hashes": [
- "sha256:96f387a2c5562db4476f09f13bbab2192e764cac08ebbf3a34a95d9b1e4a59d6",
- "sha256:f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b"
+ "sha256:33995a6753c30b7f577febfc2c50411fec6aac7f7ffeb7c4cfe5991072dcf9e6",
+ "sha256:5e1de4d849fee02c63b040a4a3fd567f4ab104defd8a5511fbbc24a8a017efbc"
],
"markers": "python_version >= '3.7'",
- "version": "==0.20.1"
+ "version": "==0.19"
},
"furo": {
"hashes": [
@@ -492,59 +195,59 @@
},
"markupsafe": {
"hashes": [
- "sha256:0576fe974b40a400449768941d5d0858cc624e3249dfd1e0c33674e5c7ca7aed",
- "sha256:085fd3201e7b12809f9e6e9bc1e5c96a368c8523fad5afb02afe3c051ae4afcc",
- "sha256:090376d812fb6ac5f171e5938e82e7f2d7adc2b629101cec0db8b267815c85e2",
- "sha256:0b462104ba25f1ac006fdab8b6a01ebbfbce9ed37fd37fd4acd70c67c973e460",
- "sha256:137678c63c977754abe9086a3ec011e8fd985ab90631145dfb9294ad09c102a7",
- "sha256:1bea30e9bf331f3fef67e0a3877b2288593c98a21ccb2cf29b74c581a4eb3af0",
- "sha256:22152d00bf4a9c7c83960521fc558f55a1adbc0631fbb00a9471e097b19d72e1",
- "sha256:22731d79ed2eb25059ae3df1dfc9cb1546691cc41f4e3130fe6bfbc3ecbbecfa",
- "sha256:2298c859cfc5463f1b64bd55cb3e602528db6fa0f3cfd568d3605c50678f8f03",
- "sha256:28057e985dace2f478e042eaa15606c7efccb700797660629da387eb289b9323",
- "sha256:2e7821bffe00aa6bd07a23913b7f4e01328c3d5cc0b40b36c0bd81d362faeb65",
- "sha256:2ec4f2d48ae59bbb9d1f9d7efb9236ab81429a764dedca114f5fdabbc3788013",
- "sha256:340bea174e9761308703ae988e982005aedf427de816d1afe98147668cc03036",
- "sha256:40627dcf047dadb22cd25ea7ecfe9cbf3bbbad0482ee5920b582f3809c97654f",
- "sha256:40dfd3fefbef579ee058f139733ac336312663c6706d1163b82b3003fb1925c4",
- "sha256:4cf06cdc1dda95223e9d2d3c58d3b178aa5dacb35ee7e3bbac10e4e1faacb419",
- "sha256:50c42830a633fa0cf9e7d27664637532791bfc31c731a87b202d2d8ac40c3ea2",
- "sha256:55f44b440d491028addb3b88f72207d71eeebfb7b5dbf0643f7c023ae1fba619",
- "sha256:608e7073dfa9e38a85d38474c082d4281f4ce276ac0010224eaba11e929dd53a",
- "sha256:63ba06c9941e46fa389d389644e2d8225e0e3e5ebcc4ff1ea8506dce646f8c8a",
- "sha256:65608c35bfb8a76763f37036547f7adfd09270fbdbf96608be2bead319728fcd",
- "sha256:665a36ae6f8f20a4676b53224e33d456a6f5a72657d9c83c2aa00765072f31f7",
- "sha256:6d6607f98fcf17e534162f0709aaad3ab7a96032723d8ac8750ffe17ae5a0666",
- "sha256:7313ce6a199651c4ed9d7e4cfb4aa56fe923b1adf9af3b420ee14e6d9a73df65",
- "sha256:7668b52e102d0ed87cb082380a7e2e1e78737ddecdde129acadb0eccc5423859",
- "sha256:7df70907e00c970c60b9ef2938d894a9381f38e6b9db73c5be35e59d92e06625",
- "sha256:7e007132af78ea9df29495dbf7b5824cb71648d7133cf7848a2a5dd00d36f9ff",
- "sha256:835fb5e38fd89328e9c81067fd642b3593c33e1e17e2fdbf77f5676abb14a156",
- "sha256:8bca7e26c1dd751236cfb0c6c72d4ad61d986e9a41bbf76cb445f69488b2a2bd",
- "sha256:8db032bf0ce9022a8e41a22598eefc802314e81b879ae093f36ce9ddf39ab1ba",
- "sha256:99625a92da8229df6d44335e6fcc558a5037dd0a760e11d84be2260e6f37002f",
- "sha256:9cad97ab29dfc3f0249b483412c85c8ef4766d96cdf9dcf5a1e3caa3f3661cf1",
- "sha256:a4abaec6ca3ad8660690236d11bfe28dfd707778e2442b45addd2f086d6ef094",
- "sha256:a6e40afa7f45939ca356f348c8e23048e02cb109ced1eb8420961b2f40fb373a",
- "sha256:a6f2fcca746e8d5910e18782f976489939d54a91f9411c32051b4aab2bd7c513",
- "sha256:a806db027852538d2ad7555b203300173dd1b77ba116de92da9afbc3a3be3eed",
- "sha256:abcabc8c2b26036d62d4c746381a6f7cf60aafcc653198ad678306986b09450d",
- "sha256:b8526c6d437855442cdd3d87eede9c425c4445ea011ca38d937db299382e6fa3",
- "sha256:bb06feb762bade6bf3c8b844462274db0c76acc95c52abe8dbed28ae3d44a147",
- "sha256:c0a33bc9f02c2b17c3ea382f91b4db0e6cde90b63b296422a939886a7a80de1c",
- "sha256:c4a549890a45f57f1ebf99c067a4ad0cb423a05544accaf2b065246827ed9603",
- "sha256:ca244fa73f50a800cf8c3ebf7fd93149ec37f5cb9596aa8873ae2c1d23498601",
- "sha256:cf877ab4ed6e302ec1d04952ca358b381a882fbd9d1b07cccbfd61783561f98a",
- "sha256:d9d971ec1e79906046aa3ca266de79eac42f1dbf3612a05dc9368125952bd1a1",
- "sha256:da25303d91526aac3672ee6d49a2f3db2d9502a4a60b55519feb1a4c7714e07d",
- "sha256:e55e40ff0cc8cc5c07996915ad367fa47da6b3fc091fdadca7f5403239c5fec3",
- "sha256:f03a532d7dee1bed20bc4884194a16160a2de9ffc6354b3878ec9682bb623c54",
- "sha256:f1cd098434e83e656abf198f103a8207a8187c0fc110306691a2e94a78d0abb2",
- "sha256:f2bfb563d0211ce16b63c7cb9395d2c682a23187f54c3d79bfec33e6705473c6",
- "sha256:f8ffb705ffcf5ddd0e80b65ddf7bed7ee4f5a441ea7d3419e861a12eaf41af58"
+ "sha256:05fb21170423db021895e1ea1e1f3ab3adb85d1c2333cbc2310f2a26bc77272e",
+ "sha256:0a4e4a1aff6c7ac4cd55792abf96c915634c2b97e3cc1c7129578aa68ebd754e",
+ "sha256:10bbfe99883db80bdbaff2dcf681dfc6533a614f700da1287707e8a5d78a8431",
+ "sha256:134da1eca9ec0ae528110ccc9e48041e0828d79f24121a1a146161103c76e686",
+ "sha256:1577735524cdad32f9f694208aa75e422adba74f1baee7551620e43a3141f559",
+ "sha256:1b40069d487e7edb2676d3fbdb2b0829ffa2cd63a2ec26c4938b2d34391b4ecc",
+ "sha256:282c2cb35b5b673bbcadb33a585408104df04f14b2d9b01d4c345a3b92861c2c",
+ "sha256:2c1b19b3aaacc6e57b7e25710ff571c24d6c3613a45e905b1fde04d691b98ee0",
+ "sha256:2ef12179d3a291be237280175b542c07a36e7f60718296278d8593d21ca937d4",
+ "sha256:338ae27d6b8745585f87218a3f23f1512dbf52c26c28e322dbe54bcede54ccb9",
+ "sha256:3c0fae6c3be832a0a0473ac912810b2877c8cb9d76ca48de1ed31e1c68386575",
+ "sha256:3fd4abcb888d15a94f32b75d8fd18ee162ca0c064f35b11134be77050296d6ba",
+ "sha256:42de32b22b6b804f42c5d98be4f7e5e977ecdd9ee9b660fda1a3edf03b11792d",
+ "sha256:504b320cd4b7eff6f968eddf81127112db685e81f7e36e75f9f84f0df46041c3",
+ "sha256:525808b8019e36eb524b8c68acdd63a37e75714eac50e988180b169d64480a00",
+ "sha256:56d9f2ecac662ca1611d183feb03a3fa4406469dafe241673d521dd5ae92a155",
+ "sha256:5bbe06f8eeafd38e5d0a4894ffec89378b6c6a625ff57e3028921f8ff59318ac",
+ "sha256:65c1a9bcdadc6c28eecee2c119465aebff8f7a584dd719facdd9e825ec61ab52",
+ "sha256:68e78619a61ecf91e76aa3e6e8e33fc4894a2bebe93410754bd28fce0a8a4f9f",
+ "sha256:69c0f17e9f5a7afdf2cc9fb2d1ce6aabdb3bafb7f38017c0b77862bcec2bbad8",
+ "sha256:6b2b56950d93e41f33b4223ead100ea0fe11f8e6ee5f641eb753ce4b77a7042b",
+ "sha256:787003c0ddb00500e49a10f2844fac87aa6ce977b90b0feaaf9de23c22508b24",
+ "sha256:7ef3cb2ebbf91e330e3bb937efada0edd9003683db6b57bb108c4001f37a02ea",
+ "sha256:8023faf4e01efadfa183e863fefde0046de576c6f14659e8782065bcece22198",
+ "sha256:8758846a7e80910096950b67071243da3e5a20ed2546e6392603c096778d48e0",
+ "sha256:8afafd99945ead6e075b973fefa56379c5b5c53fd8937dad92c662da5d8fd5ee",
+ "sha256:8c41976a29d078bb235fea9b2ecd3da465df42a562910f9022f1a03107bd02be",
+ "sha256:8e254ae696c88d98da6555f5ace2279cf7cd5b3f52be2b5cf97feafe883b58d2",
+ "sha256:9402b03f1a1b4dc4c19845e5c749e3ab82d5078d16a2a4c2cd2df62d57bb0707",
+ "sha256:962f82a3086483f5e5f64dbad880d31038b698494799b097bc59c2edf392fce6",
+ "sha256:9dcdfd0eaf283af041973bff14a2e143b8bd64e069f4c383416ecd79a81aab58",
+ "sha256:aa7bd130efab1c280bed0f45501b7c8795f9fdbeb02e965371bbef3523627779",
+ "sha256:ab4a0df41e7c16a1392727727e7998a467472d0ad65f3ad5e6e765015df08636",
+ "sha256:ad9e82fb8f09ade1c3e1b996a6337afac2b8b9e365f926f5a61aacc71adc5b3c",
+ "sha256:af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad",
+ "sha256:b076b6226fb84157e3f7c971a47ff3a679d837cf338547532ab866c57930dbee",
+ "sha256:b7ff0f54cb4ff66dd38bebd335a38e2c22c41a8ee45aa608efc890ac3e3931bc",
+ "sha256:bfce63a9e7834b12b87c64d6b155fdd9b3b96191b6bd334bf37db7ff1fe457f2",
+ "sha256:c011a4149cfbcf9f03994ec2edffcb8b1dc2d2aede7ca243746df97a5d41ce48",
+ "sha256:c9c804664ebe8f83a211cace637506669e7890fec1b4195b505c214e50dd4eb7",
+ "sha256:ca379055a47383d02a5400cb0d110cef0a776fc644cda797db0c5696cfd7e18e",
+ "sha256:cb0932dc158471523c9637e807d9bfb93e06a95cbf010f1a38b98623b929ef2b",
+ "sha256:cd0f502fe016460680cd20aaa5a76d241d6f35a1c3350c474bac1273803893fa",
+ "sha256:ceb01949af7121f9fc39f7d27f91be8546f3fb112c608bc4029aef0bab86a2a5",
+ "sha256:d080e0a5eb2529460b30190fcfcc4199bd7f827663f858a226a81bc27beaa97e",
+ "sha256:dd15ff04ffd7e05ffcb7fe79f1b98041b8ea30ae9234aed2a9168b5797c3effb",
+ "sha256:df0be2b576a7abbf737b1575f048c23fb1d769f267ec4358296f31c2479db8f9",
+ "sha256:e09031c87a1e51556fdcb46e5bd4f59dfb743061cf93c4d6831bf894f125eb57",
+ "sha256:e4dd52d80b8c83fdce44e12478ad2e85c64ea965e75d66dbeafb0a3e77308fcc",
+ "sha256:fec21693218efe39aa7f8599346e90c705afa52c5b31ae019b2e57e8f6542bb2"
],
"markers": "python_version >= '3.7'",
- "version": "==2.1.2"
+ "version": "==2.1.3"
},
"mdit-py-plugins": {
"hashes": [
@@ -665,11 +368,11 @@
},
"sphinx": {
"hashes": [
- "sha256:60c5e04756c1709a98845ed27a2eed7a556af3993afb66e77fec48189f742616",
- "sha256:61e025f788c5977d9412587e733733a289e2b9fdc2fef8868ddfbfc4ccfe881d"
+ "sha256:6d56a34697bb749ffa0152feafc4b19836c755d90a7c59b72bc7dfd371b9cc6b",
+ "sha256:97787ff1fa3256a3eef9eda523a63dbf299f7b47e053cfcf684a1c2a8380c912"
],
- "markers": "python_version >= '3.8'",
- "version": "==7.0.1"
+ "index": "pypi",
+ "version": "==6.2.1"
},
"sphinx-autobuild": {
"hashes": [
@@ -695,6 +398,22 @@
"index": "pypi",
"version": "==0.5.2"
},
+ "sphinx-notfound-page": {
+ "hashes": [
+ "sha256:c4867b345afccef72de71fb410c412540dfbb5c2de0dc06bde70b331b8f30469",
+ "sha256:f728403280026b84c234540bebbed7f710b9ea582e7348a35a5becefe4024332"
+ ],
+ "index": "pypi",
+ "version": "==0.8.3"
+ },
+ "sphinx-reredirects": {
+ "hashes": [
+ "sha256:3a22161771aadd448bb608a4fe7277252182a337af53c18372b7104531d71489",
+ "sha256:a0e7213304759b01edc22f032f1715a1c61176fc8f167164e7a52b9feec9ac64"
+ ],
+ "index": "pypi",
+ "version": "==0.1.2"
+ },
"sphinxcontrib-applehelp": {
"hashes": [
"sha256:29d341f67fb0f6f586b23ad80e072c8e6ad0b48417db2bde114a4c9746feb228",
@@ -729,11 +448,11 @@
},
"sphinxcontrib-mermaid": {
"hashes": [
- "sha256:15491c24ec78cf1626b1e79e797a9ce87cb7959cf38f955eb72dd5512aeb6ce9",
- "sha256:fa3e5325d4ba395336e6137d113f55026b1a03ccd115dc54113d1d871a580466"
+ "sha256:252ef13dd23164b28f16d8b0205cf184b9d8e2b714a302274d9f59eb708e77af",
+ "sha256:6795a72037ca55e65663d2a2c1a043d636dc3d30d418e56dd6087d1459d98a5d"
],
"index": "pypi",
- "version": "==0.8.1"
+ "version": "==0.9.2"
},
"sphinxcontrib-qthelp": {
"hashes": [
diff --git a/documentation/conf.py b/documentation/conf.py
index 89589b6e2..c681bed92 100644
--- a/documentation/conf.py
+++ b/documentation/conf.py
@@ -34,6 +34,7 @@ extensions = [
"link_usernames",
"sphinx_copybutton",
"notfound.extension",
+ "sphinx_reredirects",
]
myst_heading_anchors = 6 # Add anchors to all headers, this is disabled by default.
@@ -82,3 +83,8 @@ issuetracker_project = "WordPress/openverse"
# our site is served directly at the root docs.openverse.org URL
# so the prefix should be the root
notfound_urls_prefix = "/"
+
+redirects = {
+ "meta/traffic/index": "/meta/monitoring/traffic/index.html",
+ "meta/traffic/runbooks/identifying-and-blocking-traffic-anomalies": "/meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.html", # noqa: E501
+}
diff --git a/documentation/meta/index.md b/documentation/meta/index.md
index 601ab629e..46192c980 100644
--- a/documentation/meta/index.md
+++ b/documentation/meta/index.md
@@ -9,6 +9,6 @@ maintainer_tasks
ci_cd/index
decision_making/index
documentation/index
-traffic/index
+monitoring/index
communication_aliases
```
diff --git a/documentation/meta/monitoring/cloudwatch_logs/index.md b/documentation/meta/monitoring/cloudwatch_logs/index.md
new file mode 100644
index 000000000..5677e9e4c
--- /dev/null
+++ b/documentation/meta/monitoring/cloudwatch_logs/index.md
@@ -0,0 +1,251 @@
+# Log querying
+
+Openverse uses
+[AWS CloudWatch](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SearchDataFilterPattern.html)
+for log storage, log querying, and service monitoring. This document aims to
+give readers a baseline knowledge of our logging setup in particular, with the
+following explicit questions answered:
+
+- Where do I find logs for a given application?
+- How do I query all the logs for a given application for a given period of
+ time?
+- How do I use CloudWatch Logs Insights to query structured and unstructured
+ logs for statistical data?
+
+The primary use case for the information in this document is incident
+investigation. The audience of this document is Openverse core maintainers and
+as such necessarily assumes access to the Openverse AWS Console and other core
+infrastructure. As of writing, **Openverse does not rely on Logs Insights for
+metric generation**. Work is planned to leverage Prometheus, Grafana, and other
+tools for long term metrics monitoring[^monitoring-ip].
+
+[^monitoring-ip]:
+ An
+ [old implementation plan exists for this](/projects/proposals/monitoring/20220307-project_proposal.md)
+ but was only half implemented. For now, we will continue to leverage
+ CloudWatch to the best of our ability.
+
+```{note}
+This documentation only applies to the Openverse Django API, the ingestion server,
+and the Nuxt frontend. Openverse's catalog (Airflow) does not send logs to CloudWatch.
+To find logs for Airflow DAG runs, you need to look in Airflow itself, which manages
+logs all on its own.
+```
+
+## Terms
+
+[Please see CloudWatch's own glossary first as it contains critical terms](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatchLogsConcepts.html)
+that are referenced in this document but not listed in this section to avoid
+duplication.
+
+- "CloudWatch": AWS's name for a group of services used to monitor applications.
+ This includes logging as well as other tools that are not covered in this
+ document.
+- "Logs Insights": A tool for querying logs using a SQL-like syntax that is
+ capable of building charts and graphs and parsing unstructured log data
+ on-the-fly
+- "Structured logs": Logs in a structured, machine-readable format, like JSON;
+ cf "unstructured logs"
+- "Unstructured logs": Logs in an unstructured format, like raw stack traces; cf
+ "structured logs"
+
+## External documentation links
+
+This document aims to give an overview of how to access and get started with
+Openverse's CloudWatch configuration. It does not and should not document
+CloudWatch itself. The following links have been helpful for folks who've
+learned about CloudWatch in the past. Once you are familiar with finding logs
+for specific applications and the basic Openverse-specific features of our
+integration, AWS's own documentation will be the best place to look for help
+actually using CloudWatch.
+
+- [CloudWatch logs documentation](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html)
+- [CloudWatch Query Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html),
+ used for Logs Insights queries
+- [Searching log streams](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SearchDataFilterPattern.html)
+
+CloudWatch's documentation is "decent", but you will likely still need to fiddle
+and experiment until you find an approach that works for you. There is plenty of
+advice online as well if you get stuck trying to query in a specific way.
+
+## Where to find logs
+
+There are two entry points for CloudWatch logs:
+
+- [Log groups](https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups)
+- [Logs Insights](https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:logs-insights)
+
+### Log groups
+
+Each Openverse application has its own log group that includes the application
+name and the environment. For example, the `/ecs/production/api` log group
+houses all the log streams for every Django API task's logs. Within the group,
+each application instance has its own log streams. For ECS these correspond to
+the tasks running in the service. For EC2, these correspond to the EC2 instance.
+In both cases, the log streams include the identifier for the task or instance.
+For ECS, the streams have the following pattern:
+
+```
+ecs/<container name>/<task id>
+```
+
+For EC2, the log stream name is simply the instance identifier. Notably, the
+ingestion server has separate log groups for the workers and the coordinator.
+
+To query logs for a specific ECS task or EC2 instance, query its corresponding
+log stream.
+
+To query the logs for an entire application over a given time period, ignore the
+task IDs entirely, and simply query the full log group. This is especially
+useful if you know that an event happened within a particular period of time but
+do not know the task or EC2 instance identifier and therefore which specific log
+stream to query. Because the ingestion server splits its logs in two separate
+groups, **it is not possible to query all logs for the ingestion server in a
+single query.** You will need to separately query both the ingestion server and
+work log groups for the environment.
+
+To query all logs for a log group, go to the log group page and click the orange
+"Search log group" button in the upper right-hand corner.
+
+![Search log group button in CloudWatch](/meta/monitoring/cloudwatch_logs/search_log_group.png)
+
+It is not possible to query specific ECS container log streams via the log
+groups UI. For example, if you want to query only the Django container logs for
+the API log group, you will not be able to narrow your query to exclude the
+nginx log streams explicitly. Instead, structure your query such that it will
+only match log events from the Django application (or vice-versa).
+
+### Logs Insights
+
+Logs Insights is very powerful. It is particular useful for deriving numerical
+and statistical data from both structured and unstructured logs, though the
+latter require additional parsing. Logs Insights has its own SQL-like query
+syntax,
+[the documentation for which](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax.html)
+should be the read before attempting to use Logs Insights for anything serious.
+
+The Logs Insights tutorials present sufficient examples for different types of
+queries that you may need to do. A good tip is to think of the Logs Insights
+query as a multi-step extract, transform, and load/aggregate tool. First,
+extract the specific log events that concern you. If you're querying to find the
+average ES query time logged in a particular format, first narrow the log
+streams down to just the service sending those logs. Next, use `parse` to
+extract the relevant information from the unstructured logs. Finally, use
+`stats` to aggregate the data and find the statistical information relevant to
+you. The following are two simple examples that can serve as starting points for
+querying structured and unstructured log data in Logs Insights for our
+application.
+
+```{caution}
+Please note that logs insights queries are **not free**.
+[See the advice below on how to minimise costs](#logs-insights-queries-are-not-free).
+```
+
+**Query for number of failed thumbnail requests per media type in the query
+period (parse unstructured logs)**:
+
+```
+# Filter down to only the django log streams (excluding nginx)
+# Filter to events that include "Failed Dependency"
+filter @logStream like 'ecs/django' and @message like 'Failed Dependency'
+
+# Extract the media type and UUID from the message
+| parse "/v1/*/*/thumb/" as mediaType, uuid
+
+# Aggregate the data to count
+| stats count_distinct(uuid) by mediaType as mediaTypeCount
+```
+
+**Query for the average timing of an API endpoint (leverage structured logs)**:
+
+```
+# Filter down to only the nginx log streams (excluding django)
+# Filter down to requests with "search" in the URL (stored in `request` field)
+filter @logStream like 'ecs/nginx' and request like "search"
+
+# Calculate the average request time for every 10 minute period within the query period
+| stats avg(request_time) by bin(10m) as averageSearchTime
+```
+
+In this example, `request` and `request_time` come directly from the structured
+JSON logs that our API Nginx container outputs. You can find the list of
+available fields in the
+[Nginx configuration](https://github.com//WordPress/openverse/blob/HEAD/api/nginx.conf.template#L10-L24).
+
+You will also find additional real-world queries in Openverse's incident
+investigation reports to use as examples for building your own queries.
+
+## Things to keep in mind
+
+### Line-by-line splitting
+
+Unstructured logs are split line-by-line. Because of the way the API currently
+outputs stack traces, for example, this means that stack traces will be split
+across multiple lines. Take the following, real stack trace:
+
+```
+2023-06-04T00:32:12.485Z 2023-06-04 00:32:12,485 ERROR tasks.py:220 - Error processing task `CREATE_AND_POPULATE_FILTERED_INDEX` for `audio`: RequestError(400, 'search_phase_execution_exception', 'too_many_clauses: maxClauseCount is set to 1024')
+2023-06-04T00:32:12.539Z Process Process-5:
+2023-06-04T00:32:12.541Z Traceback (most recent call last):
+2023-06-04T00:32:12.541Z File "/usr/local/lib/python3.11/multiprocessing/process.py", line 314, in _bootstrap
+2023-06-04T00:32:12.541Z self.run()
+2023-06-04T00:32:12.541Z File "/usr/local/lib/python3.11/multiprocessing/process.py", line 108, in run
+2023-06-04T00:32:12.541Z self._target(*self._args, **self._kwargs)
+2023-06-04T00:32:12.541Z File "/ingestion_server/ingestion_server/tasks.py", line 217, in perform_task
+2023-06-04T00:32:12.541Z func(model, **kwargs) # Directly invoke indexer methods if no task function
+2023-06-04T00:32:12.541Z ^^^^^^^^^^^^^^^^^^^^^
+2023-06-04T00:32:12.541Z File "/ingestion_server/ingestion_server/indexer.py", line 525, in create_and_populate_filtered_index
+2023-06-04T00:32:12.541Z self.es.reindex(
+2023-06-04T00:32:12.541Z File "/venv/lib/python3.11/site-packages/elasticsearch/client/utils.py", line 347, in _wrapped
+2023-06-04T00:32:12.541Z return func(*args, params=params, headers=headers, **kwargs)
+2023-06-04T00:32:12.541Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+2023-06-04T00:32:12.541Z File "/venv/lib/python3.11/site-packages/elasticsearch/client/__init__.py", line 1467, in reindex
+2023-06-04T00:32:12.541Z return self.transport.perform_request(
+2023-06-04T00:32:12.541Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+2023-06-04T00:32:12.541Z File "/venv/lib/python3.11/site-packages/elasticsearch/transport.py", line 466, in perform_request
+2023-06-04T00:32:12.541Z raise e
+2023-06-04T00:32:12.541Z File "/venv/lib/python3.11/site-packages/elasticsearch/transport.py", line 427, in perform_request
+2023-06-04T00:32:12.541Z status, headers_response, data = connection.perform_request(
+2023-06-04T00:32:12.541Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^
+2023-06-04T00:32:12.541Z File "/venv/lib/python3.11/site-packages/elasticsearch/connection/http_requests.py", line 216, in perform_request
+2023-06-04T00:32:12.541Z self._raise_error(response.status_code, raw_data)
+2023-06-04T00:32:12.541Z File "/venv/lib/python3.11/site-packages/elasticsearch/connection/base.py", line 328, in _raise_error
+2023-06-04T00:32:12.541Z raise HTTP_EXCEPTIONS.get(status_code, TransportError)(
+2023-06-04T00:32:12.541Z elasticsearch.exceptions.RequestError: RequestError(400, 'search_phase_execution_exception', 'too_many_clauses: maxClauseCount is set to 1024')
+```
+
+Each line (prepended with a timestamp), is a separate log event. The implication
+of this is that if you're querying for a particular phrase that appears in a
+stack trace, you will only get the exact line of the stack trace with the phrase
+you queried for.
+
+This will be fixed generally for our Python applications, but still keep this in
+mind if you find logs that appear to be incomplete. It may be that the event
+parsing configuration needs tweaking to account for certain edge cases. Please
+open an issue if you notice this.
+
+### Logs Insights queries are not free
+
+Logs Insights queries parse logs on-the-fly (more or less) and cost money each
+time they are executed. You can minimise costs in the following ways:
+
+- Scope queries to as specific a period of time as possible. If you are
+ investigating an incident with a known beginning and end, narrow the query to
+ that time period via the date range selector at the top. If there are multiple
+ periods with lulls in between, consider performing multiple queries and
+ aggregating them manually outside Logs Insights.
+- Develop queries against the minimum required number. While you're still
+ building a query to find specific data, narrow the time range or use `limit`
+ to reduce the number of log lines processed during each iteration. Avoid
+ searching the full relevant data set until you're confident that the query
+ works and extracts the data you expect.
+- When trying to find examples of specific logs, use `limit` with a very low
+ number. If you just need one example, use `limit 1`. If you need multiple, try
+ to keep the number low. This is especially useful when developing `parse`
+ statements.
+
+### Logs are not retained forever
+
+Each log group has a retention policy and none of them are forever. You can see
+the retention period for each log group
+[on the log groups listing page under the "retention" heading of the table](https://us-east-1.console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups).
diff --git a/documentation/meta/monitoring/cloudwatch_logs/search_log_group.png b/documentation/meta/monitoring/cloudwatch_logs/search_log_group.png
new file mode 100644
index 000000000..f80d98539
Binary files /dev/null and b/documentation/meta/monitoring/cloudwatch_logs/search_log_group.png differ
diff --git a/documentation/meta/monitoring/index.md b/documentation/meta/monitoring/index.md
new file mode 100644
index 000000000..717770e44
--- /dev/null
+++ b/documentation/meta/monitoring/index.md
@@ -0,0 +1,11 @@
+# Monitoring the Openverse
+
+This section is focused on documenting the ways in which Openverse's many
+applications are monitored.
+
+```{toctree}
+:titlesonly:
+
+traffic/index
+cloudwatch_logs/index
+```
diff --git a/documentation/meta/traffic/index.md b/documentation/meta/monitoring/traffic/index.md
similarity index 100%
rename from documentation/meta/traffic/index.md
rename to documentation/meta/monitoring/traffic/index.md
diff --git a/documentation/meta/traffic/runbooks/cloudflare_traffic_ui.png b/documentation/meta/monitoring/traffic/runbooks/cloudflare_traffic_ui.png
similarity index 100%
rename from documentation/meta/traffic/runbooks/cloudflare_traffic_ui.png
rename to documentation/meta/monitoring/traffic/runbooks/cloudflare_traffic_ui.png
diff --git a/documentation/meta/traffic/runbooks/identifying-and-blocking-traffic-anomalies.md b/documentation/meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.md
similarity index 100%
rename from documentation/meta/traffic/runbooks/identifying-and-blocking-traffic-anomalies.md
rename to documentation/meta/monitoring/traffic/runbooks/identifying-and-blocking-traffic-anomalies.md