Skip to content

Commit 21f74dd

Browse files
committed
Add announcement about the availability of the CLI tool to the filebeat dissect testing article
1 parent 0d8b2d5 commit 21f74dd

3 files changed

Lines changed: 33 additions & 5 deletions

File tree

content/posts/2020/dissect-tester-announcement.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ doesn't support Grok patterns (like
1717
Instead, Filebeat advocates the usage of the [dissect
1818
processor](https://www.elastic.co/guide/en/beats/filebeat/master/dissect.html).
1919

20+
{{< announce >}}
21+
A small CLI tool for local pattern testing is also available now. Releases are available in the
22+
[Github Releases page](https://github.com/jorgelbg/dissect-tester/releases). After downloading and
23+
decompressing the `.tar.gz` file the CLI can be executed as:
24+
25+
```sh
26+
$ dissect-tester/dissect-tester --pattern='%{key1} %{key2}'
27+
```
28+
29+
Test cases are accepted through `stdin` and for each test case the result will be sent directly into
30+
`stdout`.
31+
{{</ announce >}}
32+
2033
I like the dissect processor tokenization syntax. It is easy to understand and usually quite
2134
fast at processing. This blog post is not about the decision of not supporting Grok patterns in
2235
Filebeat.
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- announcement -->
2-
<div class="info">
3-
<svg width="80" viewBox="0 0 512 512"><circle cx="256" cy="475" r="27" fill="#f7911e"/><g fill="#d1d3d4"><path
2+
<div class="info announce">
3+
<svg width="150" viewBox="0 0 512 512"><circle cx="256" cy="475" r="27" fill="#f7911e"/><g fill="#d1d3d4"><path
44
d="M99 244v-34H67v41M413 244v-34h32v41z"/></g><g fill="#4aa7ed"><path d="M114 244h-3a101 101 0 000
55
202h3V244zM398 244h3a101 101 0 010 202h-3V244z"/></g><path d="M456 210a200 200 0 00-400 0h64a136 136
66
0 01272 0h64z" fill="#f9ae18"/><path d="M78 306c6 0 10-5 10-10v-1a10 10 0 00-20 0v1c0 5 5 10 10
@@ -12,7 +12,6 @@
1212
0 0054-208zM256 458a17 17 0 110 34 17 17 0 010-34zm-152-22a91 91 0 010-182v182zM89 236l-12
1313
3v-19h12v16zM256 64c-77 0-140 60-146 136H66a190 190 0 01380 0h-44c-6-76-69-136-146-136zm167
1414
156h12v19l-12-3v-16zm-15 216V254a91 91 0 010 182z"/></svg>
15-
16-
<p>{{ .Inner | markdownify }}</p>
15+
<div>{{ .Inner | markdownify }}</div>
1716
</div>
1817
<!-- image -->

themes/jorgelbg/static/css/style.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,12 +851,28 @@ h1 {
851851
display: flex;
852852
align-items: flex-start;
853853
margin: 1rem 0;
854+
font-family: sans-serif;
855+
font-size: 1.15rem;
856+
}
857+
858+
.info.announce {
859+
position: relative;
860+
margin-left: -100px;
861+
}
862+
863+
.info.announce > div {
864+
border-left: 6px solid var(--main-color);
865+
padding-left: 10px;
866+
margin-left: 10px;
867+
}
868+
869+
.info pre {
870+
margin-top: 20px;
854871
}
855872

856873
.info p {
857874
width: 100%;
858875
margin: 0 0 0 1rem;
859-
font-family: sans-serif;
860876
}
861877

862878
p.cc {

0 commit comments

Comments
 (0)