Browsed by
Category: Uncategorized

Querying CloudTrail Logs from a centralized S3 Location using Athena

Querying CloudTrail Logs from a centralized S3 Location using Athena

Hello, it’s been some time since my last blog post. Today, I want to discuss the process of querying AWS CloudTrail logs stored in a centralized S3 bucket using AWS Athena. But before diving into the topic, let’s briefly introduce AWS CloudTrail and AWS Athena. AWS CloudTrail is a service that provides governance, compliance, and auditing capabilities for your AWS account. It records all user actions performed on AWS services and resources as events. By aggregating logs from multiple accounts,…

Read More Read More

Covid-19 Analysis with BigData Applications – Part 3

Covid-19 Analysis with BigData Applications – Part 3

Hi there! If you’ve been following these blog series, we are looking at a BigData project to analyze Covid-19 data. So far, we have looked at the overall architecture and ETL Spark jobs. In this post, let’s look the scheduler component (Lambda function) in this workflow. The main reason I’m using Lambda here is due to its serverless nature and native integration with other AWS services. For example, we could trigger it via a CloudWatch scheduled rule in regular basis…

Read More Read More

Notice: Migration Of This Blog to New Site

Notice: Migration Of This Blog to New Site

First of all, I’d like to thank you for caring about what I write here. I hope the content available through this site has been useful for you in one way or the other. Because of the increasing visitors and size of the content published in this blogging site, I’ve decided to migrate it to a better hosting service. Accordingly, I’ve setup my blog on Amazon Web Services and the updated site address is https://blog.sajjan.com.np. With that said, I request you to expect…

Read More Read More

Docker: Running Apache Web Server In A Container

Docker: Running Apache Web Server In A Container

This is my second post for this blog series on Docker. If you haven’t already read my previous post, I highly recommend you to read that article first. Here, I’m going to dive a little deeper into container management by working on a further complicated application and advanced features of docker. Until now, I’ve already covered the introduction, basic container usage and default networking in docker. So, let’s now get into more advanced concepts in container virtualization. For this post,…

Read More Read More

CubLinux – Yet Another Linux Distribution

CubLinux – Yet Another Linux Distribution

Welcome to my yet another post! If you’re a fan of Linux, then this article is definitely for you. Here, I’m going to write a little review of a new Linux distro that I’ve been using lately. I don’t know about you, but I hadn’t heard about a Linux distro called CubLinux before. It seems CubLinux, as suggested by the name itself (Chrome + Ubuntu + Linux), is a combination of Chrome OS and Ubuntu. That means, it brings the…

Read More Read More

PHP7 – What’s New and Better in PHP?

PHP7 – What’s New and Better in PHP?

In some of my previous posts, I discussed about using PHP as part of LAMP for web application development. Well, if you haven’t noticed it already, when I said PHP, I was talking about PHP version 5 or 5.x. However, now I’m going to specifically talk about PHP7 and what new features it brings to the table. PHP History PHP5, which is the most popular and most widely used PHP version, was introduced in 2004 and immediately after its launch, development of…

Read More Read More

GIT – A Simple Getting Started Guide For Git

GIT – A Simple Getting Started Guide For Git

There is a term called “Git” in IT field, which may not be much familiar to most people despite being one of the most useful and handy tools in the industry. So, in this post, I’m going to cover the introduction and getting started guide for Git so that more people will be able to understand it and leverage its benefits. What is Git? Basically, Git is a distributed version control system. So, what is version control system and why should…

Read More Read More

LAMP-Securing Your Web Server With SSL

LAMP-Securing Your Web Server With SSL

Hello and welcome! In my previous post on LAMP web server, I discussed about its installation and configuration inside CentOS environment. Today, I’m writing on how to setup SSL certificate in our website and other security related configurations as well. Installing SSL Certificate First of all, let’s install mod_ssl package from MOD Security. It’s done in CentOS as follows: Then, let’s create a directory where we’ll keep our SSL certificates. Now, let’s generate self-signed certificate for our web server. Here, openssl is…

Read More Read More

Blocking Mails Based on Subject in Zimbra

Blocking Mails Based on Subject in Zimbra

Welcome back! In this post, let’s talk about tightening our Antispam or Spamassassin in Zimbra. In real-time, there may be a serious reason for filtering and blocking mails based on subject that contain certain structures or words. Here are the steps to achieve this objective in Zimbra 8.5 and later. 1) Create a policy file inside /opt/zimbra/data/spamassassin/rules/ as root user e.g. Here, SUB_ATTACHMENT is a rule that filters the mail header based on the regular expression match of Subject. The describe…

Read More Read More

Restricting Certain Users from Sending/Receiving External Mails in Zimbra

Restricting Certain Users from Sending/Receiving External Mails in Zimbra

Hello! In this post, I’m going to talk about how to configure a Zimbra server to restrict certain users from sending or receiving mails from external domains. In order to achieve this objective, Zimbra provides two alternatives: one using CBPolicyd (web based) and another using MTA restrictions (cli based). Here I’m covering both methods. First, let’s have a look at CBPolicyd. Note: The methods mentioned here are tested successfully in ZCS 8.5 and ZCS 8.6. I cannot confirm its validity…

Read More Read More