A blog of silly and instructional examples for
Gravwell's
most beautiful module
Logging with eval
October 29, 2025
Did you know that eval has a log() function that logs to the gravwell tag? tag=kvdata kv foo | eval log(printf("foo contains: %v", foo)); | table The above example will log …
Approximating eˣ using a …
October 26, 2025
Introduction In this article we calculate the value of eˣ (x=5 in this example). It’s not efficient and you shouldn’t be constructing elementary functions in eval, but …
Arrays in eval
October 26, 2025
Did you know eval has support for arrays? I’ll leave it to the example to illustrate, but you can use arrays in all the ways you’d expect! eval // you can make array …
Counting fruit with JSON …
October 26, 2025
Introduction Did you know eval has a full set of JSON manipulation functions? Eval allows you to read, iterate over, and create JSON values in-pipeline. This makes doing things …
Linear regression with …
October 26, 2025
Introduction Linear regression is something you probably begrudgingly did in high school. Most people remember applying it to find a “line of best fit” to a series of …
Persistent variables
October 26, 2025
Introduction In this post we’ll show off the two types of “persistent variables” in eval – variables and maps. But first, what the heck is a persistent …