Home » Archives for Mary Zheng

Author Archives: Mary Zheng

Mary has graduated from Mechanical Engineering department at ShangHai JiaoTong University. She also holds a Master degree in Computer Science from Webster University. During her studies she has been involved with a large number of projects ranging from programming and software engineering. She works as a senior Software Engineer in the telecommunications sector where she acts as a leader and works with others to design, implement, and monitor the software solution.

Splunk Schedules and Alerts Example

1. Introduction Splunk includes scheduled reports to run reports at a scheduled internal. Splunk alert is a saved search which can be run real-time or on a scheduled internal and can trigger one or more actions. In this example, I will demonstrate how to schedule a report and set up an alert with step-by-step instructions along with screenshots. 2. Technologies ...

Read More »

Splunk Dashboards Example

In this article, we will explain Dashboards in Splunk. 1. Introduction Splunk is software for searching, monitoring, and analyzing machine-generated data. It provides a web interface to create dashboards. In this example, I will demonstrate: How to create a dashboard from scratchHow to create a dashboard from a search resultHow to create a dashboard from a reportHow to create a ...

Read More »

Splunk Search Language Example

1. Introduction Splunk Search Processing Language (SPL) is a query language designed by Splunk which provides search commands with associated functions, arguments, and clauses to search, filter, modify, manipulate, insert, and delete data. The SPL syntax is similar to UNIX pipeline and SQL. In this example, I will show how to use SPL to: Search raw events with search termsTransform ...

Read More »

Splunk Time Range Search Example

1. Introduction Most data source event contains a timestamp. If the event doesn’t include a timestamp, then Splunk applies a timestamp to the event during the indexing process. It’s very helpful to search event based on a time range. In this example, I will demonstrate several ways to search based on a time range: With build-in time range pickerAdd a ...

Read More »

Splunk Reports Example

In this article, we are going to explain Splunk Reports through examples. 1. Introduction Splunk is software for searching, monitoring, and analyzing machine-generated data. It provides a web interface to generate reports from the searching results. In this example, I will demonstrate: How to create a reportHow to edit a reportHow to delete a report 2. Technologies Used The example ...

Read More »

Splunk Basic Search Example

1. Introduction Splunk Web Interface provides typeahead, context-aware, time range picker, and search history to assist searching. In this example, I will show three types of basic searches. via the Web Interfacewith Search Processing Languagefrom Extracted Fields 2. Technologies Used The example in this article was built and run using: Docker 19.03.8Splunk 8.1.1Google Chrome 87.0.4280.88 Please reference my other article ...

Read More »

The Splunk Web Interface

This is an article about the Splunk Web Interface. 1. Introduction Splunk is a software for searching, monitoring, and analyzing machine generated data. It provides a web interface which can import data from various sources, search events, and generate graphs and reports from the searching results. In this example, I will demonstrate: Install Splunk in a docker containerUpload a data ...

Read More »

Java Lock Example

In this article, we are going to explain Java Lock through Examples. 1. Introduction Java provides java.util.concurrent package to improve the performance. But, the concurrent execution introduces race condition, deadlock, and dirty-read issues due to multiple threads access the same shared resource. Lucky, Java also provides a Lock interface and ReentrantLock, ReentrantReadWriteLock, etc classes to address these issues. In this ...

Read More »

Java FutureTask Example

1. Introduction Java provides the java.util.concurrent package since 1.5 to support parallel execution. It improves the performance when dealing with a time consuming task. The java.util.concurrent.FutureTask class provides a base implementation of the java.util.concurrent.Future interface. The following class diagram outlines FutureTask and its relationship with Callable, Runnable, Future, Executor, and ExecutorService. Figure 1 FutureTask Class Diagram In this example, I ...

Read More »

How to Convert Double to String in Java

In this article, we will learn how to Convert Double to String in Java. 1. Introduction Java language provides a Double and String types. A java.lang.Double class represents a floating-point number and java.lang.String class represents a sequence of characters. In this example, I will demonstrate how to convert a Double to String by utilizing the following classes: java.lang.Doublejava.lang.Stringjava.text.DecimalFormatjava.lang.StringBufferjava.lang.StringBuilder. 2. Technologies ...

Read More »