Better HN
topnewbestaskshowjobs
Log inSign up

fluential

104 karma · joined Jul 13, 2011 (15y ago) · 70 submissions

Submissions

comment 5y ago · link · parent

Start here http://mywiki.wooledge.org/BashGuide and http://mywiki.wooledge.org/BashFAQ

comment 5y ago · link · parent

I like very much https://github.com/sorin-ionescu/prezto

comment 5y ago · link · parent

Or run your own version of government tax system https://github.com/hmrc

comment 6y ago · link · parent

It’s Hugo’s terminal theme https://themes.gohugo.io/hugo-theme-terminal/

comment 6y ago · link · parent

The way to approach that in logstash is to use fingerprint plugin which can do various formats (including uuids), MURMUR3 seems to be the fastest here.

https://www.elastic.co/guide/en/logstash/current/plugins-fil....

Edit: typo

comment 6y ago · link · parent

There would be usually multiple syslog sink servers so there is never a single point of failure. This can be configured in various ways either dns round robin, load balancers or even multiple destinations configured on the client side, rsyslog can iterate over a list in case of failures.

If there is log storm coming from misconfigured app depending on your traffic levels the sink servers should give you a lot of space for an on-call engineer to be notified that something is off and adjust / rate limit / drop accordingly.

Edit: udated with more info

comment 6y ago · link · parent

RELP is very much standard syslog wire protocol(which is just plain tcp anyway), but with some extra stuff to avoid losing data. Just fixing tcp issue here, where data could be ACK-ed into OS receive buffer and the app could be killed before offloading into a persisten storage. Not losing data is very important in log shipping.

The json that syslog wraps data in is actually using the same syslog protocol - nothing is chaging here. It's encapsulated within the same protocol. The only reason to unwrap json is when you need to start structuring your data for BI views, your milage may vary. The key is that these two are de-coupled.

Because you work on a basic level networking / storage layers its very easy to reason and build reliable pipelines according to your needs. As you say — you can't beat that.

PS: The pain starts when you need to deal with multiline logs like java stack traces but then you just work with devs to log everything into json.

Edit: split comment, more info

comment 6y ago · link · parent

Great article based on real life experience. I have been building logging and protective monitoring pipelines for a while now.

From my experience if it comes to log shipping from hosts rsyslog + relp + disk assited in-memory asynchronous queues are preferred, most of the time you just only have network i/o as logs would not touch disk.

The idea is to ship logs off the device ASAP as well as destination acts as a sink server capable to handle most of the spikes withouth stressing local source. All done via rsyslog which also wraps actual logs into json format locally. The glue could be syslog-tag.

At the other end you could have ELK stack and logstash using json_lines codec input (pretty fast) structuring data further to your likings.

Just looking into metrics now the avg time for logs showing in ELK is 7-200ms (the latency comes mostly from specific reads happening against the ES cluster).

As ELK is always the slowest component, dropping logs compressed in-memory directly onto disk is also an option.

One thing to note is that RELP can produce extra duplicates which are easily handled by inserting into Elasticsearch using specific document ID (some performance penalty) which could be some unique hash computed on (log content, timestamp, host) etc. With this in place you can also easily "replay" stream of logs to fill potential gaps.

This type of setup scales really good as well.

Edit: typos

comment 6y ago · link · parent

Rarely such updates are deployed into production without testing in non-prod envs

comment 6y ago · link · parent

Looks like „utf8mb4” mysql issue ? :)

comment 6y ago · link · parent

You could do port forwarding...

comment 6y ago · link · parent

I have had cancelled overall 5 flights during this time for which I got zero response from any airline, there was no option to speak to a human as “all representatives were always busy”. All I could get is a voucher.

I’ve managed to get all refunded 3 x chargeback via credit cards and 2 x paypal. Provided basic proof of purchase. (UK)

comment 6y ago · link · parent

Same here + https://addons.mozilla.org/en-GB/firefox/addon/google-search...

comment 6y ago · link · parent

You will like this one https://staticman.net/ same concept

comment 6y ago · link · parent

The extension idea is really good but is does break some websites plus its really slowing down the browser, after removing it was like a breath of fresh air.

comment 6y ago · link · parent

How about Hugo+cms editor on netlify https://www.netlifycms.org/docs/hugo/

comment 6y ago · link · parent

Boom egos shaken

comment 6y ago · link · parent

Mailbox.org

comment 6y ago · link · parent

Worth a read “Explanation of the state of uBlock Origin (and other blockers) for Safari” — https://github.com/el1t/uBlock-Safari/issues/158

comment 6y ago · link · parent

Or cookie consent block list https://www.i-dont-care-about-cookies.eu/

comment 6y ago · link · parent

I was looking into that space recently and I have used otter.ai for transcriptions which gives you 6000 minutes/month for 8 USD, which is insanely cheap in that space. Their British language model is quite good as well.

I’ve bulk exported generated srt/vtt files from my fav podcasts and using tinysearch that was posted here recently with ableplayer to provide audio full text search of my Jekyll published podcasts posts and with clickable timestamps to audio play of search phrases.

Whenever I want to know what podcaster has to say on specific subject a quick search makes such a difference!

52.

Canary Mail: Email App for iOS and macOS with OpenPGP Support(canarymail.io ↗)

1 points · by fluential · 6y ago · discuss

comment 7y ago · link · parent

I’ve found any vpn including WireGuard running on mobile draining battery too much.

Disabling third party cookies works much better, and for mobile safari using free ka-block.

54.

A quick fix for stopping TOR DoS attacks(hackerfactor.com ↗)

3 points · by fluential · 9y ago · 1 comment

comment 10y ago · link · parent

After a quick glance, first thing that strikes me is using docker for measuring network bound application performance. Across different versions docker handles networking differently and by default it may have quite significant impact on your results, good example comes from percona guys https://www.percona.com/blog/2016/02/05/measuring-docker-cpu... I wonder what would results be without using docker, or using docker with --net=host

comment 10y ago · link · parent

Be aware that very few routers actually have enough power to do openvpn encryption with higher bandwith (20Mbit+) links and 256CBC encryption. You may get better results by downgrading your cipher (not every vpn provider supports that) To achieve good performance you are looking for hardware with Intel QuickAssist, I would recommend putting pfsense on something like http://store.netgate.com/ADI/RCC-VE-2440.aspx

comment 11y ago · link · parent

Also relevant - Statistics for Engineers Tutorial at SRECon15 - https://github.com/HeinrichHartmann/StatisticsTutorial
123