Skip to content

Instantly share code, notes, and snippets.

@SlavikCA
Created October 18, 2019 18:36
Show Gist options
  • Save SlavikCA/9170f129feb93105a0a29a07ffc199e5 to your computer and use it in GitHub Desktop.
Save SlavikCA/9170f129feb93105a0a29a07ffc199e5 to your computer and use it in GitHub Desktop.
Elastalert Docker log
docker-compose up
Starting elastalert_tox ... done
Attaching to elastalert_tox
tox_1 | GLOB sdist-make: /home/elastalert/setup.py
tox_1 | py36 inst-nodeps: /home/elastalert/.tox/dist/elastalert-0.2.1.zip
tox_1 | py36 runtests: PYTHONHASHSEED='1886538183'
tox_1 | py36 runtests: commands[0] | coverage run --source=elastalert/,tests/ -m pytest --strict
tox_1 | ============================= test session starts ==============================
tox_1 | platform linux -- Python 3.6.8, pytest-3.2.5, py-1.8.0, pluggy-0.4.0
tox_1 | rootdir: /home/elastalert, inifile: pytest.ini
tox_1 | collected 253 items
tox_1 |
tox_1 | tests/alerts_test.py ................................................................
tox_1 | tests/auth_test.py ...
tox_1 | tests/base_test.py ........................................................
tox_1 | tests/create_index_test.py ..................
tox_1 | tests/elasticsearch_test.py ssss
tox_1 | tests/kibana_discover_test.py .................................
tox_1 | tests/kibana_test.py ....
tox_1 | tests/loaders_test.py .....................
tox_1 | tests/rules_test.py ..................................
tox_1 | tests/util_test.py ................
tox_1 |
tox_1 | ==================== 249 passed, 4 skipped in 29.19 seconds ====================
tox_1 | py36 runtests: commands[1] | coverage report -m
tox_1 | Name Stmts Miss Cover Missing
tox_1 | --------------------------------------------------------------
tox_1 | elastalert/__init__.py 59 40 32% 19-32, 39, 46-55, 61, 67, 73-74, 80-81, 87, 93-103, 247-257
tox_1 | elastalert/alerts.py 1338 510 62% 50-53, 111, 140, 202, 213, 218, 263, 268, 273-298, 311, 316, 327-383, 386, 393-400, 403, 441-442, 449, 457, 473-476, 479, 487-490, 508, 5
86-593, 604, 612-613, 624, 635, 656, 671, 678, 691, 698, 724-728, 733, 748, 751, 769-772, 791-792, 798-799, 804-805, 807-811, 814-815, 818, 841, 845-846, 855, 861, 868, 873, 880, 885, 912-913, 923-924,
928, 931, 940-946, 949-950, 953-967, 1009-1049, 1052, 1098-1099, 1103, 1141-1143, 1148, 1152-1157, 1184, 1187, 1192, 1195, 1210, 1214, 1223-1224, 1228, 1237-1254, 1257-1259, 1262-1265, 1268-1280, 1283
-1333, 1336, 1426-1427, 1431-1434, 1438-1449, 1460-1462, 1471, 1480-1482, 1486-1501, 1504, 1512-1517, 1520-1529, 1532, 1539-1543, 1546-1556, 1559, 1568-1576, 1579-1599, 1602, 1611-1618, 1621-1649, 1653
, 1662-1670, 1673-1680, 1683-1698, 1701-1718, 1721-1722, 1726-1739, 1742, 1751-1754, 1757-1773, 1776, 1796-1798, 1801-1832, 1835, 1874, 1884-1885, 1889-1895, 1898, 1916, 1920, 1944-1945, 1983-1984, 198
8, 2067, 2074-2075, 2080, 2090-2091, 2094-2108, 2111, 2123-2180, 2184
tox_1 | elastalert/auth.py 23 3 87% 28, 32, 36
tox_1 | elastalert/config.py 73 20 73% 47-50, 61-62, 65, 69, 84, 88, 91-92, 101, 111, 114, 125, 131, 134-136
tox_1 | elastalert/create_index.py 157 127 19% 23-113, 137, 141-142, 146, 150-264, 268
tox_1 | elastalert/elastalert.py 1263 414 67% 117, 122, 125, 134-136, 174, 178, 230, 237-238, 245-277, 285-299, 318, 323, 340-341, 377, 388, 396-402, 409, 423, 460, 464-469, 474-493,
518-526, 533, 542-584, 619, 621, 632, 647, 649, 655-658, 661-665, 689-692, 702-703, 745, 749-752, 758-768, 787, 803-806, 821, 836, 868, 875-876, 900-901, 906, 939, 974-978, 984-993, 997-1001, 1056, 107
0-1078, 1084-1085, 1087-1102, 1124-1125, 1127, 1137, 1145-1152, 1169-1172, 1175, 1221-1226, 1229-1231, 1235-1237, 1240-1299, 1303-1309, 1321-1322, 1326-1335, 1379-1382, 1409, 1414-1415, 1433, 1439-1446
, 1462, 1469-1487, 1491-1500, 1503-1505, 1508-1510, 1522-1525, 1528, 1532-1534, 1546-1548, 1551-1562, 1574, 1577-1580, 1596, 1606-1607, 1615, 1635, 1641, 1647-1649, 1660-1662, 1670, 1697, 1700-1701, 17
06-1715, 1730, 1738, 1741-1742, 1753, 1757, 1762-1766, 1781-1785, 1801-1802, 1848-1849, 1852-1853, 1861-1863, 1866-1867, 1888, 1892, 1901-1905, 1910-1913, 1915-1922, 1952-1953, 1955-1963, 1966, 1982-19
83, 2036, 2041-2043, 2047-2052, 2056
tox_1 | elastalert/enhancements.py 11 2 82% 15, 20
tox_1 | elastalert/kibana.py 79 12 85% 209-210, 232-238, 268, 271, 274, 279
tox_1 | elastalert/kibana_discover.py 60 0 100%
tox_1 | elastalert/loaders.py 325 89 73% 117-118, 121, 123, 140, 150, 159, 168, 238, 243, 247, 249, 251, 253, 255, 257, 259, 264-265, 287-308, 312-315, 326, 329, 342-343, 346-347
, 357, 363, 376, 387-388, 393-395, 401, 408-414, 423, 429, 433-434, 452, 457, 482-487, 499, 506, 517-521, 526-527, 542-548
tox_1 | elastalert/opsgenie.py 138 24 83% 53-54, 61, 69, 74, 93, 99, 123-124, 131-133, 140, 145-159
tox_1 | elastalert/rule_from_kibana.py 29 29 0% 3-47
tox_1 | elastalert/ruletypes.py 726 160 78% 46, 77, 84, 90, 95, 109-112, 119, 226, 271, 284-291, 332, 341-352, 355, 360-378, 404, 423, 425-432, 465-471, 488-489, 504-505, 519-534, 5
39-549, 598-606, 631-633, 637, 639, 642, 644-648, 652-654, 663, 665, 680-681, 692, 703, 708, 724-727, 729, 737-747, 905, 954, 958-969, 988, 998, 1022, 1039, 1044-1051, 1072, 1112-1123, 1127-1129, 1137-
1145, 1152-1171, 1177-1184
tox_1 | elastalert/test_rule.py 282 251 11% 37-41, 46-47, 52-167, 171-175, 179-197, 201-216, 220-223, 231-337, 343-440, 444-445, 449
tox_1 | elastalert/util.py 256 73 71% 29-30, 155-156, 168-174, 178-182, 191-193, 255, 259, 263-264, 268, 319-327, 335-388, 394-397
tox_1 | elastalert/zabbix.py 48 48 0% 1-75
tox_1 | tests/__init__.py 0 0 100%
tox_1 | tests/alerts_test.py 917 1 99% 989
tox_1 | tests/auth_test.py 11 0 100%
tox_1 | tests/base_test.py 909 2 99% 31-32
tox_1 | tests/conftest.py 148 13 91% 26-29, 103-111
tox_1 | tests/create_index_test.py 28 0 100%
tox_1 | tests/elasticsearch_test.py 67 46 31% 24-25, 35-51, 55-71, 75-88, 92-102
tox_1 | tests/kibana_discover_test.py 84 0 100%
tox_1 | tests/kibana_test.py 28 0 100%
tox_1 | tests/loaders_test.py 299 0 100%
tox_1 | tests/rules_test.py 715 0 100%
tox_1 | tests/util_test.py 93 0 100%
tox_1 | --------------------------------------------------------------
tox_1 | TOTAL 8166 1864 77%
tox_1 | py36 runtests: commands[2] | flake8 .
tox_1 | docs inst-nodeps: /home/elastalert/.tox/dist/elastalert-0.2.1.zip
tox_1 | docs runtests: PYTHONHASHSEED='1886538183'
tox_1 | docs runtests: commands[0] | sphinx-build -b html -d build/doctrees -W source build/html
tox_1 | Running Sphinx v1.6.6
tox_1 | loading pickled environment... done
tox_1 | building [mo]: targets for 0 po files that are out of date
tox_1 | building [html]: targets for 0 source files that are out of date
tox_1 | updating environment: 0 added, 0 changed, 0 removed
tox_1 | looking for now-outdated files... none found
tox_1 | no targets are out of date.
tox_1 | build succeeded.
tox_1 | ___________________________________ summary ____________________________________
tox_1 | py36: commands succeeded
tox_1 | docs: commands succeeded
tox_1 | congratulations :)
elastalert_tox exited with code 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment