|
1 | 1 | --- |
2 | 2 | title: Live Tail |
3 | 3 | kind: documentation |
4 | | -description: 'See all your logs in real time.' |
| 4 | +description: 'Search through all of your logs and perform Log Analytics' |
5 | 5 | aliases: |
6 | | - - /logs/live_tail |
| 6 | + - /logs/explore/livetail |
7 | 7 | further_reading: |
8 | | - - link: 'logs/explorer/analytics' |
9 | | - tag: 'Documentation' |
10 | | - text: 'Perform Log Analytics' |
11 | 8 | - link: 'logs/processing' |
12 | 9 | tag: 'Documentation' |
13 | 10 | text: 'Learn how to process your logs' |
14 | | - - link: 'logs/processing/parsing' |
| 11 | + - link: 'logs/explorer/side_panel' |
| 12 | + tag: 'Documentation' |
| 13 | + text: 'The log side panel' |
| 14 | + - link: 'logs/explorer/#list-of-logs' |
15 | 15 | tag: 'Documentation' |
16 | | - text: 'Learn more about parsing' |
| 16 | + text: 'The list view of logs' |
17 | 17 | --- |
18 | 18 |
|
19 | | -{{< img src="logs/explorer/livetail/live_tail_demo.mp4" alt="Live tail" video="true" >}} |
20 | | - |
21 | 19 | ## Overview |
22 | 20 |
|
23 | | -The Live Tail feature gives you the ability to see all your log events in near real time from anywhere in your infrastructure. It displays logs as soon as they get out of the [Pipeline section][1] and before they are [indexed][2] by Datadog, hence: |
24 | | - |
25 | | -1. All logs ingested by Datadog are displayed. ([It's Logging without Limits][2]\*) |
26 | | -2. Displayed logs have been processed. |
27 | | -3. The stream can be paused. |
28 | | -4. You can't go back in time. |
29 | | - |
30 | | -This feature allows you, for instance, to check if a process has correctly started, or if a new deployment went smoothly. |
31 | | - |
32 | | -## Live Tail view |
33 | | - |
34 | | -Choose the `Live Tail` option in the time range selector to switch to the Live Tail view: |
35 | | - |
36 | | -{{< img src="logs/explorer/livetail/live_tail_time_selector.png" alt="Live Tail time selector" >}} |
37 | | - |
38 | | -The number of received events per second is displayed at the top left, as well as the sampling rate. Since a stream of thousands of logs per second is not human readable, high throughput log streams are sampled. |
39 | | - |
40 | | -Use the [Live Tail search bar filtering features](#filtering-the-log-stream) to filter the log stream and the **Pause/Play** button at the top right of the screen to pause or resume the stream. |
41 | | - |
42 | | -**Note**: Selecting any log pauses the stream and displays more details about the selected log. |
43 | | - |
44 | | -### Display Options |
45 | | - |
46 | | -Customize the Live Tail view to better highlight the relevant information in your logs. |
47 | | -Click on the gear at the top right of the page to activate one of the options below: |
48 | | - |
49 | | -{{< img src="logs/explorer/livetail/live_tail_column.png" alt="Live tail column" style="width:30%;">}} |
50 | | - |
51 | | -1. Choose to display one, three, or ten lines from your logs attributes in your logstream. |
52 | | -2. Enable/Disable the Date and Message column. |
53 | | -3. Add any log attribute as a column either in this panel or by clicking on it directly: |
54 | | - |
55 | | -{{< img src="logs/explorer/livetail/live_tail_add_as_column.png" alt="Live tail add as column" style="width:50%;">}} |
56 | | - |
57 | | -## Filtering the log Stream |
58 | | - |
59 | | -A valid query in the search bar displays logs that match your search criteria. |
60 | | -The search syntax is the same in the Live Tail views as in the other Log views, but here, your query is matched against all of the ingested logs and not just the indexed ones. |
61 | | - |
62 | | -### JSON attributes |
63 | | - |
64 | | -Any query that works in other views works in the Live Tail view, but you can even go further and **filter on attributes that are not defined as facets**. |
65 | | - |
66 | | -For example, to filter on the following `filename` attribute there are two options: |
| 21 | +With Live Tail, access all your log events in near real time from anywhere in your infrastructure. The Live Tail view provides visibility on **all** logs, whether you choose to index them or not - see also [Exclusion Filters][1] on logs indexes. Logs flowing through the Live Tail are all structured, processed, and enriched from [Log Pipelines][2]. |
67 | 22 |
|
68 | | -{{< img src="logs/explorer/livetail/live_tail_save.png" alt="Live tail save" style="width:50%;">}} |
| 23 | +For example, Live Tail is specifically useful to check if a process has correctly started or if a new deployment went smoothly. |
69 | 24 |
|
70 | | -1. Click on the attribute and add it to the search: |
| 25 | +## Live Tail View |
71 | 26 |
|
72 | | - {{< img src="logs/explorer/livetail/live_tail_click_attribute.png" alt="Live tail click attribute" style="width:50%;">}} |
| 27 | +In the [Log Explorer][3], choose the Live Tail option in the timerange to query logs as they flow into Datadog. |
73 | 28 |
|
74 | | -2. Use the following query `@filename:runner.go`: |
| 29 | +{{< img src="logs/explorer/live_tail/livetail.gif" alt="Log Live Tail" style="width:100%;" >}} |
75 | 30 |
|
76 | | - {{< img src="logs/explorer/livetail/live_tail_filtered.png" alt="Live tail filtered" style="width:50%;">}} |
| 31 | +Contrary to queries on indexed logs happening in the [Log Explorer][3], queries in the Live Tail do *not* require that you [declare a facet][4] beforehand. |
77 | 32 |
|
78 | | -To filter on all logs with a line number above 150 use the following query: `@linenumber:>150` |
| 33 | +**Note**: For the sake of readability, the Live Tail output is sampled when too many logs matching the query are flowing in. The sampling applied is uniformly random, so that your Live Tail logs are statistically representative of your actual log throughput. Scope your query down with additional search filters if you need visibility on every single log flowing in. |
79 | 34 |
|
80 | 35 | ## Further Reading |
81 | 36 |
|
82 | 37 | {{< partial name="whats-next/whats-next.html" >}} |
83 | | -<br> |
84 | | -\*Logging without Limits is a trademark of Datadog, Inc. |
85 | 38 |
|
86 | | -[1]: /logs/processing/pipelines/ |
87 | | -[2]: /logs/ |
| 39 | +[1]: /logs/indexes#exclusion-filters |
| 40 | +[2]: /logs/processing |
| 41 | +[3]: /logs/explorer |
| 42 | +[4]: /logs/explorer/facets/ |
0 commit comments