<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="/assets/xml/rss.xsl" media="all"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Aru Sahni&#39;s Blog</title>
    <link>https://arusahni.net/</link>
    <description>Aru Sahni&#39;s personal blog.</description>
    <atom:link href="https://arusahni.net/blog/rss.xml" rel="self" type="application/rss+xml" />
    <language>en</language>
    <lastBuildDate>Sat, 07 Jun 2025 02:02:40 +0000</lastBuildDate>
    <docs>https://www.rssboard.org/rss-specification</docs>
    <item>
      <title>Persisting a Default Kernel with systemd-boot</title>
      <link>https://arusahni.net/blog/systemd-boot-default-kernel/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;I use &lt;a href=&quot;https://wiki.archlinux.org/title/Systemd-boot&quot;&gt;systemd-boot&lt;/a&gt; instead of
Grub. It&#39;s pretty barebones, which I like. It simply presents a boot menu and
then gets out of the way. Like other boot managers, it allows you to set the
default boot entry. I just need to set the &lt;code&gt;default=&lt;/code&gt; key in
&lt;code&gt;/efi/loader/loader.conf&lt;/code&gt; to reference one of the &lt;code&gt;.conf&lt;/code&gt; files in
&lt;code&gt;/efi/loader/entries/&lt;/code&gt; (e.g.,
&lt;code&gt;00000000000000000000000000000000-6.14.6-arch1-1.conf&lt;/code&gt;). This setup works well.
However, in a rolling-release distro like Arch, where kernel packages are
frequently updated, there&#39;s an issue to address.&lt;/p&gt;
&lt;p&gt;Arch provides two kernel packages: &lt;code&gt;linux&lt;/code&gt;, which tracks the latest stable
kernel, and &lt;code&gt;linux-lts&lt;/code&gt;, which tracks the latest LTS kernel version. Having the
LTS kernel installed simultaneously gives me a handy fallback if a new mainline
kernel makes it so I can&#39;t boot. The problem arises when updating &lt;code&gt;linux&lt;/code&gt; or
&lt;code&gt;linux-lts&lt;/code&gt; packages. The &lt;code&gt;.conf&lt;/code&gt; filenames change, invalidating the &lt;code&gt;default=&lt;/code&gt;
value. Ideally, I could make the default entry track either the mainline or LTS
kernels regardless of explicit version.&lt;/p&gt;
&lt;p&gt;Well, I can! The &lt;code&gt;default=&lt;/code&gt; field accepts patterns. So, instead of
&lt;code&gt;00000000000000000000000000000000-6.14.6-arch1-1.conf&lt;/code&gt;, you can use
&lt;code&gt;00000000000000000000000000000000-*-arch?-?.conf&lt;/code&gt; and, boom, you&#39;re always on
the latest stable version.&lt;/p&gt;
&lt;p&gt;You may be wondering what the field &lt;code&gt;00000000000000000000000000000000&lt;/code&gt;
represents - that&#39;s your &lt;a href=&quot;https://www.freedesktop.org/software/systemd/man/latest/machine-id.html&quot;&gt;machine
ID&lt;/a&gt;.
It&#39;s a 32-character hexadecimal ID. You can see yours via &lt;code&gt;cat /etc/machine-id&lt;/code&gt;.&lt;/p&gt;</description>
      <category>linux</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2025/05/systemd-boot-default-kernel.html</guid>
      <pubDate>Sat, 07 Jun 2025 02:02:40 +0000</pubDate>
    </item>
    <item>
      <title>Installing a Release Candidate Kernel in Arch Linux</title>
      <link>https://arusahni.net/blog/arch-rc-kernel/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;I recently received a shiny new Thinkpad for my shiny new job. I had the option
to select what I wanted from Lenovo (or Apple, but I dislike MacOS) and chose a
machine that wouldn&#39;t have the same issues &lt;a href=&quot;https://arusahni.net/blog/arch-crash-recovery-chroot/&quot;&gt;my other workstation
had&lt;/a&gt;. I made it a point to avoid Intel
chipsets (due to webcam issues) and stayed far away from discrete Nvidia
graphics. I settled on a nice AMD Ryzen-based system. It had a very new
Qualcomm radio, but I saw people online saying that Wi-Fi and Bluetooth worked
fine. I took the plunge and selected that as my workstation.&lt;/p&gt;
&lt;p&gt;It arrived, I popped in my live USB, and a few hours later, I had a fully
provisioned Arch Linux system. Wi-Fi worked fine, and I was able to scan for
Bluetooth devices. Success! Or was it?&lt;/p&gt;
&lt;p&gt;The next morning, I sat down at my desk, clocked in, and grabbed my Bluetooth
headphones to listen to some morning tunes. I initiated pairing from the
headphones, selected them from my laptop&#39;s device list, and... nothing. It
timed out. I tried again, and again, and again, messing with timeouts and using
&lt;code&gt;bluetoothctl&lt;/code&gt; to manually negotiate things, but no luck.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/arch-rc-kernel/&quot;&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;</description>
      <category>linux</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2024/12/arch-rc-kernel.html</guid>
      <pubDate>Fri, 20 Dec 2024 01:33:03 +0000</pubDate>
    </item>
    <item>
      <title>Repairing a Botched Arch Linux Kernel Upgrade</title>
      <link>https://arusahni.net/blog/arch-crash-recovery-chroot/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;I made the jump to Arch Linux on my personal and work computers a few years
ago. Ubuntu was a dependable experience, but a combination of issues with the
Debian way of life (slow progress) and Canonical&#39;s stewardship of the project
(e.g., Snaps) convinced me it was time to try another distribution.&lt;/p&gt;
&lt;p&gt;It&#39;s been a great experience. Pacman is a wonderful package manager, and AUR is
everything I wanted PPAs to be. I get the latest versions of packages
(including the Linux kernel) shortly after they&#39;re released. Of course, that
isn&#39;t &lt;em&gt;always&lt;/em&gt; a good thing, but rolling back to an older version is
straightforward.&lt;/p&gt;
&lt;p&gt;I recently stubbed my toe in a way that&#39;s unique to Arch - my computer crashed
while I was in the middle of upgrading my kernel. What&#39;s great is I was able to
recover with only an hour or so of downtime. What happened?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/arch-crash-recovery-chroot/&quot;&gt;Read more…&lt;/a&gt; (5 min remaining to read)&lt;/p&gt;</description>
      <category>linux</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2024/04/arch-crash-recovery-chroot.html</guid>
      <pubDate>Sun, 07 Apr 2024 02:00:00 +0000</pubDate>
    </item>
    <item>
      <title>Migrating my Neovim Config to Lua</title>
      <link>https://arusahni.net/blog/neovim-lua-config/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;I&#39;ve been a happy &lt;a href=&quot;https://neovim.io/&quot;&gt;Neovim&lt;/a&gt; user for the past several years.
The pace of development, quality of the product, and energy of the community
have made it enjoyable to use. Recently, the project has introduced
&lt;a href=&quot;https://en.wikipedia.org/wiki/Lua_(programming_language)&quot;&gt;Lua&lt;/a&gt; as a first-class
citizen in the editor. In places where you may otherwise be forced to wrangle
the mess that is VimL (aka Vimscript), you can instead use a saner, faster
scripting language.&lt;/p&gt;
&lt;p&gt;I initially refrained from making the jump over to Lua as I held the ideal of
being able to return to Vim whenever I wanted. With the release of Vim version
8, which doubled down on VimL, I realized my folly. Vim wasn&#39;t going to
suddenly adopt the good parts of Neovim, nor was that community going to
change overnight. With that, I sat down one Saturday to get to porting. After a
few weeks of on-and-off experimentation (and exploring both /r/neovim and
GitHub to see how other people did things) , I landed on a stable, Lua-first
config that&#39;s been humming along for several weeks now.&lt;/p&gt;
&lt;p&gt;Let&#39;s dive in!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/neovim-lua-config/&quot;&gt;Read more…&lt;/a&gt; (7 min remaining to read)&lt;/p&gt;</description>
      <category>vim</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2022/10/neovim-lua-config.html</guid>
      <pubDate>Sun, 20 Nov 2022 23:04:45 +0000</pubDate>
    </item>
    <item>
      <title>How Git Checkout&#39;s Previous Branch Shortcut Works Under the Hood</title>
      <link>https://arusahni.net/blog/git-revisions/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;One piece of Git shorthand I use all the time is &lt;code&gt;git checkout -&lt;/code&gt;. Much like
&lt;code&gt;cd -&lt;/code&gt;, it references the previous item in your history. In the case of &lt;code&gt;cd&lt;/code&gt;,
it will change your current directory to the previous one you were in. So,&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes catppuccin-mocha github-light-high-contrast&quot; style=&quot;background-color:#1e1e2e;--shiki-light-bg:#ffffff;color:#cdd6f4;--shiki-light:#0e1116&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ echo $PWD&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/home/aru&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ cd code/git-req&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ echo $PWD&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/home/aru/code/git-req&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ cd -&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;~&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ echo $PWD&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/home/aru&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Git has its own version of this:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes catppuccin-mocha github-light-high-contrast&quot; style=&quot;background-color:#1e1e2e;--shiki-light-bg:#ffffff;color:#cdd6f4;--shiki-light:#0e1116&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ git branch --show-current&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;master&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ git checkout my-new-feature&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Switched to branch &#39;my-new-feature&#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Your branch is up to date with &#39;origin/my-new-feature&#39;.&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;$ git checkout -&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Switched to branch &#39;master&#39;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Your branch is up to date with &#39;origin/master&#39;.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Handy! But how does it work? I poked through the files in &lt;code&gt;.git&lt;/code&gt; (and even
watched the filesystem for changes, but nothing jumped out).&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/git-revisions/&quot;&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;</description>
      <category>tech</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2021/04/git-revisions.html</guid>
      <pubDate>Mon, 26 Apr 2021 22:02:51 +0000</pubDate>
    </item>
    <item>
      <title>Elixir Development with Vim</title>
      <link>https://arusahni.net/blog/elixir-vim/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;I love Vim (more specifically, &lt;a href=&quot;http://neovim.org/&quot;&gt;the NeoVim fork&lt;/a&gt;). Modal
editing as part of my
&lt;a href=&quot;https://sanctum.geek.nz/arabesque/unix-as-ide-introduction/&quot;&gt;Unix IDE&lt;/a&gt; brings
an immense amount of productivity and enjoyment to my day-to-day development
activities. As such, whenever I take up a new language or framework, I enjoy
experimenting with how best to integrate it into my existing workflow.&lt;/p&gt;
&lt;p&gt;Having started programming in Elixir, I&#39;ve started the customization journey
for the language.  Much as with Maslow&#39;s Hierarchy of Needs, there&#39;s a
hierarchy of editor support required for an fulfilling programming experience.
Let&#39;s get there with Elixir!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/elixir-vim/&quot;&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;</description>
      <category>tech</category>
      <category>elixir</category>
      <category>vim</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2020/08/elixir-vim.html</guid>
      <pubDate>Tue, 25 Aug 2020 17:41:20 +0000</pubDate>
    </item>
    <item>
      <title>Kicking the Tires with Elixir, Part 1 - Pipes</title>
      <link>https://arusahni.net/blog/elixir-intro-01/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;Lately I&#39;ve been playing with Elixir, a functional language that sits over
&lt;a href=&quot;https://www.erlang.org/&quot;&gt;Erlang&lt;/a&gt; and
&lt;a href=&quot;https://learnyousomeerlang.com/what-is-otp&quot;&gt;the OTP framework&lt;/a&gt;. It&#39;s exciting
because it handles embarrassingly scalable problems with aplomb, enabling a
high level of parallelism and concurrency with a great developer experience.
While I think Rust shines at the system programming level, Elixir seems like a
perfect candidate for web services - balancing power with ergonomics.&lt;/p&gt;
&lt;p&gt;There are plenty of well-written posts about the language and its associated
libraries. I wanted to touch on what stood out to me as a Pythonista, web
developer, and nerd. I don&#39;t know how many posts will comprise the series, but
I have at least a few topics in mind.&lt;/p&gt;
&lt;p&gt;First up: pipes.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/elixir-intro-01/&quot;&gt;Read more…&lt;/a&gt; (3 min remaining to read)&lt;/p&gt;</description>
      <category>tech</category>
      <category>elixir</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2020/08/elxir-intro-01.html</guid>
      <pubDate>Wed, 12 Aug 2020 21:41:11 +0000</pubDate>
    </item>
    <item>
      <title>Migrating from Gmail to Fastmail</title>
      <link>https://arusahni.net/blog/gmail-to-fastmail/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;In 2004, Google launched Gmail. This service changed everything. You didn&#39;t
have to worry about running over your few megabytes of quota - your storage
space was &amp;quot;unlimited&amp;quot; (with a ticker and everything)! Deletion was a thing of
the past, you now archive! Folders were so ninety-ninety-late, there
were labels! I got an invite within the first two weeks of it launching, and it
was good.&lt;/p&gt;
&lt;p&gt;A decade or so later, Google launched Inbox, which brought innovations like
bundles, snoozing, highlights, pinning, sweeping, and smart filtering to the
deluge of email that flooded your account each day. I switched from Gmail to
Inbox, and it was better.&lt;/p&gt;
&lt;p&gt;Then, in true Google fashion, it was sacrificed at the altar of project
mismanagement (or whatever the lack of product strategy is called). And it
was bad.&lt;/p&gt;
&lt;p&gt;Since being forced back to Gmail, I&#39;ve constantly lamented the death of a
service that made dealing with email less painful for me. Gmail is not only
without new innovation, but it&#39;s also slow; It regularly fails to load new
messages, or seemingly loses track of what it should be showing, necessitating
a hard refresh. Sure, Google has thrown a few bones at it, like smart replies,
but I respond to so few emails that spending a few seconds to formulate a
response has never been an issue.&lt;/p&gt;
&lt;p&gt;Given these concerns, I realized that the &amp;quot;stickiness&amp;quot; of Gmail was gone.
I have the means to pay for service, and nothing is keeping me on Gmail
(other than the fact that everyone&#39;s been using my Gmail address for 16 years).
Leaving Gmail sounded doable, and I owned a personal domain on that I&#39;d love to
use for email. The only question was: where do I go for hosting?&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/gmail-to-fastmail/&quot;&gt;Read more…&lt;/a&gt; (4 min remaining to read)&lt;/p&gt;</description>
      <category>tech</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2020/08/gmail-to-fastmail.html</guid>
      <pubDate>Sun, 02 Aug 2020 21:47:35 +0000</pubDate>
    </item>
    <item>
      <title>Optimizing Rust Binary Size</title>
      <link>https://arusahni.net/blog/optimizing-rust-binary-size/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;I develop and maintain a git extension called
&lt;a href=&quot;https://arusahni.github.io/git-req/&quot;&gt;git-req&lt;/a&gt;. It enables developers to check
out pull requests from GitHub and GitLab by their number instead of branch
name. It initially started out as a bash script that invoked Python for harder
tasks (e.g., JSON parsing). It worked well enough, but I wanted to add
functionality that would have been painful to implement in bash.  Additionally,
one of my goals was to make it as portable as possible, and requiring a Python
distribution be available flew against that. That meant that I needed to
distribute this as a binary instead of a script, so I set about finding a
programming language to use. After surveying what was available, and
determining what would be the best addition to my toolbox, &lt;a href=&quot;https://www.rust-lang.org/&quot;&gt;I selected
Rust&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The programming language has a steep learning curve, but has been fun to learn
and immerse myself within.  The community is great, and I&#39;m excited to find
more opportunities to use Rust in the future.&lt;/p&gt;
&lt;p&gt;The rewrite took a while to accomplish, but when all was said and done,
everything worked, and worked well.  I was able to implement some snazzy new
features as well as polish some rough edges. However, for how &amp;quot;simple&amp;quot; I felt
the underlying program to be, it clocked in at 13 megabytes. That felt like a
lot.  So, I decided to see what could be done.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/optimizing-rust-binary-size/&quot;&gt;Read more…&lt;/a&gt; (6 min remaining to read)&lt;/p&gt;</description>
      <category>rust</category>
      <category>code</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2020/03/optimizing-rust-binary-size.html</guid>
      <pubDate>Tue, 31 Mar 2020 00:00:05 +0000</pubDate>
    </item>
    <item>
      <title>Elasticsearch Frustration: The Curious Query</title>
      <link>https://arusahni.net/blog/elasticsearch-frustration/</link>
      <dc:creator>Aru Sahni</dc:creator>
      <description>&lt;p&gt;Last year I was poking at an Elasticsearch cluster to review the indexed data
and verify that things were healthy. It was all good until I stumbled upon this
weird document:&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes catppuccin-mocha github-light-high-contrast&quot; style=&quot;background-color:#1e1e2e;--shiki-light-bg:#ffffff;color:#cdd6f4;--shiki-light:#0e1116&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-javascript&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;  &quot;_version&quot;&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#FAB387;--shiki-light:#023B95&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;  &quot;_index&quot;&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;&quot;events&quot;&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;  &quot;_type&quot;&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;&quot;event&quot;&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;  &quot;_id&quot;&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;&quot;_query&quot;&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;  &quot;_score&quot;&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#FAB387;--shiki-light:#023B95&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;  &quot;_source&quot;&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;    &quot;query&quot;&lt;/span&gt;&lt;span style=&quot;color:#94E2D5;--shiki-light:#0E1116&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;      &quot;bool&quot;&lt;/span&gt;&lt;span style=&quot;color:#94E2D5;--shiki-light:#0E1116&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;        &quot;must&quot;&lt;/span&gt;&lt;span style=&quot;color:#94E2D5;--shiki-light:#0E1116&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt; [&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;          {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;            &quot;range&quot;&lt;/span&gt;&lt;span style=&quot;color:#94E2D5;--shiki-light:#0E1116&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;              &quot;date_created&quot;&lt;/span&gt;&lt;span style=&quot;color:#94E2D5;--shiki-light:#0E1116&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt; {&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt;                &quot;gte&quot;&lt;/span&gt;&lt;span style=&quot;color:#94E2D5;--shiki-light:#0E1116&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color:#A6E3A1;--shiki-light:#032563&quot;&gt; &quot;2016-01-01&quot;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;              }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;            }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;          }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#CDD6F4;--shiki-light:#0E1116&quot;&gt;        ]&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;      }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;    }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;  }&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span style=&quot;color:#9399B2;--shiki-light:#0E1116&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It may not be immediately obvious what&#39;s going on in the above snippet.
Instead of a valid &lt;code&gt;event&lt;/code&gt; document, there&#39;s a document with a query as
the contents. Additionally, the document ID appears to be &lt;code&gt;_query&lt;/code&gt;
instead of the expected GUID. The combination of these two irregularities makes
it seem as if someone accidentally posted a query to the wrong endpoint. No
problem, just delete the document, right?&lt;/p&gt;
&lt;pre class=&quot;shiki shiki-themes catppuccin-mocha github-light-high-contrast&quot; style=&quot;background-color:#1e1e2e;--shiki-light-bg:#ffffff;color:#cdd6f4;--shiki-light:#0e1116&quot; tabindex=&quot;0&quot;&gt;&lt;code class=&quot;language-text&quot;&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;DELETE /events/event/_query&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;ActionRequestValidationException[Validation Failed: 1: source is missing;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Wat.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://arusahni.net/blog/elasticsearch-frustration/&quot;&gt;Read more…&lt;/a&gt; (1 min remaining to read)&lt;/p&gt;</description>
      <category>tech</category>
      <category>elasticsearch</category>
      <guid isPermaLink="false">http://arusahni.net/blog/2017/04/elasticsearch-frustration.html</guid>
      <pubDate>Sun, 23 Apr 2017 20:23:28 +0000</pubDate>
    </item>
  </channel>
</rss>
