mirror of https://github.com/tstack/lnav
[site] add links to playground / tutorial
parent
e047386441
commit
ac398dd441
@ -0,0 +1,30 @@
|
||||
---
|
||||
layout: page
|
||||
title: Tutorials
|
||||
permalink: /tutorials
|
||||
---
|
||||
|
||||
These tutorials are provided to help you learn how **lnav** works
|
||||
without having to install anything. They are running on a shared
|
||||
[fly.io](https://fly.io) instance, so please be kind.
|
||||
|
||||
The tutorials are implemented using features in **lnav** and not
|
||||
built in to the code itself. The tutorial text is
|
||||
[markdown](https://docs.lnav.org/en/latest/ui.html#markdown),
|
||||
the logic is written [SQL](https://docs.lnav.org/en/latest/sqlext.html),
|
||||
and the reactions are triggered through
|
||||
[events](https://docs.lnav.org/en/latest/events.html).
|
||||
|
||||
The source for the tutorials can be found [here](https://github.com/tstack/lnav/tree/master/docs/tutorials).
|
||||
|
||||
# Tutorial 1
|
||||
|
||||
<div id="playground-box">
|
||||
<h4>Learn how to navigate an example log file using lnav:</h4>
|
||||
|
||||
<code>
|
||||
<span class="prompt">$</span>
|
||||
<a href="ssh://tutorial1@demo.lnav.org">ssh tutorial1@demo.lnav.org</a>
|
||||
</code>
|
||||
</div>
|
||||
|
@ -0,0 +1,27 @@
|
||||
---
|
||||
layout: post
|
||||
title: Playground and Tutorial
|
||||
excerpt: Try lnav without having to install anything
|
||||
---
|
||||
|
||||
To make it easier to try out **lnav**, I've deployed an ssh-based playground
|
||||
and tutorial. You can SSH as follows to try them out:
|
||||
|
||||
```console
|
||||
$ ssh playground@demo.lnav.org
|
||||
$ ssh tutorial1@demo.lnav.org
|
||||
```
|
||||
|
||||
<script id="asciicast-HiiUMMmRKZh0uCVKm1Uw8WLlw"
|
||||
src="https://asciinema.org/a/HiiUMMmRKZh0uCVKm1Uw8WLlw.js"
|
||||
async>
|
||||
</script>
|
||||
|
||||
The playground has a couple of example logs to play with. The tutorial
|
||||
tries to guide you through the basics of navigating log files with lnav.
|
||||
The server is running on the free-tier of [fly.io](https://fly.io), so
|
||||
please be kind.
|
||||
|
||||
This effort was inspired by the `git.charm.sh` SSH server and by the
|
||||
[fasterthanli.me](https://fasterthanli.me/articles/remote-development-with-rust-on-fly-io)
|
||||
post on doing remote development on fly.io.
|
Binary file not shown.
Before Width: | Height: | Size: 902 KiB After Width: | Height: | Size: 1.1 MiB |
@ -0,0 +1,31 @@
|
||||
---
|
||||
---
|
||||
|
||||
@import "{{ site.theme }}";
|
||||
|
||||
#playground-box {
|
||||
font-size: x-large;
|
||||
border-radius: 25px;
|
||||
background: #8d8;
|
||||
padding: 20px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#playground-box h4 {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#playground-box code {
|
||||
padding-left: 20px;
|
||||
background: #444;
|
||||
border-color: #444;
|
||||
}
|
||||
|
||||
#playground-box code a {
|
||||
padding-right: 20px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#playground-box .prompt {
|
||||
color: #4f4;
|
||||
}
|
Loading…
Reference in New Issue