Skip to content

Commit 2fccc88

Browse files
committed
updates
1 parent dfe0524 commit 2fccc88

File tree

429 files changed

+1472
-907
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

429 files changed

+1472
-907
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
============
2+
data streams
3+
============
4+
5+
6+
7+
decommission a data stream
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
10+
If a data stream won't be used any longer but the old data needs
11+
to be kept, it can be modified using the `modify_data_stream` api
12+
to not have a write index anymore.
13+
This prevents an empty data stream from sitting around taking up space
14+
and valuable shards.
15+
16+
.. code-block:: console
17+
18+
POST /_data_stream/_modify
19+
{
20+
"actions": [
21+
{
22+
"remove_backing_index": {
23+
"data_stream": "logs-xxx-default",
24+
"index": ".ds-logs-xxx-default-000002"
25+
}
26+
}
27+
]
28+
}
29+
30+
Leave the ILM policy intact, so the old indices can continue through
31+
their stages of life.
32+
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1+
=========================
2+
indicies and data streams
3+
=========================
14

2-
=======
3-
indexes
4-
=======
5-
6-
indices?
75

86
Contents:
97

@@ -13,4 +11,5 @@ Contents:
1311
create_index
1412
ilm
1513
errors
14+
datastream
1615

_sources/elk/elastic/interesting.rst.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,14 @@ interesting stuff
4848
.. code-block:: console
4949
5050
GET _cat/indices?h=index,status,store.size,docs.count,creation.date.string&s=index,creation.date&format=json&bytes=b
51-
51+
52+
get status of relocating shards
53+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54+
55+
Covers relocating and recovering shards.
56+
57+
.. code-block:: console
58+
59+
GET _cat/recovery?v&active_only=true&h=index,shard,source_node,target_node,bytes_percent,bytes_total,time
60+
61+

_sources/elk/index.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ Contents:
2020
docker/commands
2121
testing_logstash
2222
elastic-cloud
23+
query/index
2324

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
=====
2+
es|ql
3+
=====
4+
5+
6+
example
7+
^^^^^^^
8+
9+
Get a list of IP addresses and the count of events from those IPs from logs containing `log.source.address`.
10+
It has to remove the port from the address, and only outputs the IP and count.
11+
This example is using cisco_ios logs
12+
13+
.. code-block:: console
14+
15+
FROM logs-* | WHERE log.source.address IS NOT NULL AND event.dataset == "cisco_ios.log" | DISSECT log.source.address """%{ipaddress}:%{port}""" | KEEP ipaddress |
16+
STATS c = COUNT(*) BY ipaddress | KEEP ipaddress,c | SORT c DESC
17+

_sources/elk/query/index.rst.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=================================
2+
querying elasticsearch and kibana
3+
=================================
4+
5+
Contents:
6+
7+
.. toctree::
8+
:maxdepth: 2
9+
10+
elasticsearch-esql
11+

_sources/operating_systems/linux/cgroups/notes.rst.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
get version
2+
^^^^^^^^^^^
13

4+
.. code-block:: console
5+
6+
stat -fc %T /sys/fs/cgroup/
27
3-
View available cgroups
8+
view available cgroups
49
^^^^^^^^^^^^^^^^^^^^^^
510

611
.. code-block:: console
@@ -35,7 +40,7 @@ If it's mounted, check the available cpusets.
3540
3641
3742
38-
Links
43+
links
3944
^^^^^
4045

4146
`RH docs <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/resource_management_guide/chap-introduction_to_control_groups>`_

_sources/operating_systems/linux/commands.rst.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ pgrep - List child processes of a parent
1717
1818
pgrep -P PID_OF_PARENT
1919
20+
last reboot
21+
^^^^^^^^^^^
22+
23+
See information in `/var/log/wtmp` about the last reboots.
24+

_static/basic.css

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* basic.css
3-
* ~~~~~~~~~
4-
*
52
* Sphinx stylesheet -- basic theme.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114

125
/* -- main layout ----------------------------------------------------------- */
@@ -115,15 +108,11 @@ img {
115108
/* -- search page ----------------------------------------------------------- */
116109

117110
ul.search {
118-
margin: 10px 0 0 20px;
119-
padding: 0;
111+
margin-top: 10px;
120112
}
121113

122114
ul.search li {
123-
padding: 5px 0 5px 20px;
124-
background-image: url(file.png);
125-
background-repeat: no-repeat;
126-
background-position: 0 7px;
115+
padding: 5px 0;
127116
}
128117

129118
ul.search li a {

_static/doctools.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
/*
2-
* doctools.js
3-
* ~~~~~~~~~~~
4-
*
52
* Base JavaScript utilities for all Sphinx HTML documentation.
6-
*
7-
* :copyright: Copyright 2007-2024 by the Sphinx team, see AUTHORS.
8-
* :license: BSD, see LICENSE for details.
9-
*
103
*/
114
"use strict";
125

0 commit comments

Comments
 (0)