Home » Archives for Mary Zheng » Page 4

Author Archives: Mary Zheng

Avatar photo
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 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

Bipartite Graph

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

Bipartite Graph

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

Bipartite Graph

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 »

Solr Project using Solr Core as a Search Engine

In this article, we are going to introduce a Solr Project using Solr Core as a Search Engine. 1. Introduction Apache Solr is an open-source search platform based on Apache Lucene. It’s written in Java. A Solr Core refers to a single index and associated transaction log and configuration files. We can perform operations like indexing, analyzing, searching at a ...

Read More »

Apache Kafka Basic Operations Tutorial

This is a turorial about the Apache Kafka Basic Operations. 1. Introduction Apache Kafka is a streaming process software platform. In this example, I will show the following basic operations with a Windows computer: How to start/stop serverHow to create and list topicsHow to consume messages from a topic 2. Technologies Used The example commands in this article uses: Apache ...

Read More »