Creating Linux VM in Oracle Cloud Explained
Written By askMLabs on Monday, October 19, 2020 | 12:07 AM
AWS Security Group Demo
Written By askMLabs on Sunday, October 18, 2020 | 11:58 PM
EC2 - PrivateIP, PublicIP and ElasticIP Explained with Demo
Written By askMLabs on Saturday, October 17, 2020 | 6:33 PM
AWS Network Gateways - Introduction
Written By askMLabs on Tuesday, August 18, 2020 | 2:54 PM
Introduction to Oracle Regions, Availability Domains and Fault Domain.
Written By askMLabs on Tuesday, August 11, 2020 | 4:10 PM
This video helps you to understanding the
- Oracle Regions
- Availability Domains
- Fault Domains.
It will also talk about High availability in Fault domains and Availability Domains.
Oracle Cloud Services Availability Link :
https://www.oracle.com/cloud/data-regions.html
Documentations is available here :
https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm
Introduction to the OCI Network Gateways -- Oracle Cloud Networking
Written By askMLabs on Tuesday, August 4, 2020 | 11:13 AM
- Internet Gateway
- NAT Gateway
- DRG ( Dynamic Routing Gateway )
- Service Gateway
Control the index data retention in Splunk - Purge and Claim disk space
Written By askMLabs on Sunday, August 2, 2020 | 12:03 PM
30days = 30*24*60*60 seconds = 2592000 seconds
[root@askmlabs-splunk01 default]# diff indexes.conf indexes.conf_bak42c42< frozenTimePeriodInSecs = 2592000---> frozenTimePeriodInSecs = 188697600[root@askmlabs-splunk01 default]#
[root@askmlabs-splunk01 default]# /opt/splunk/bin/splunk restart
[root@askmlabs-splunk01 default]# df -h /opt/splunkFilesystem Size Used Avail Use% Mounted on/dev/mapper/data-data493G 224G 244G 48% /opt/splunk[root@askmlabs-splunk01 default]#
5 steps to use logstash plugin for New Relic Logs
Written By askMLabs on Saturday, August 1, 2020 | 1:03 PM
- Install Java
- Install Logstash
- Install New Relic Plugin for Logstash
- Configure New Relic Plugin
- Validate the installation
2. Install Logstash:
Logstash is installed using rpm. There are various methods to install logstash. We used rpm method for this setup. Please complete the following steps to install logstash.
3. Install New Relic Plugin for Logstash :
Use the following steps to install New Relic Plugin for Logstash.
Verify if Plugin is installed. Go to directory /usr/share/logstash
Install plugin using....
Validate again if the plugin is installed....
4. Configure New Relic Plugin:
At this point, we have logstash installed and New Relic plugin for Logs is also installed. Now lets configure the plugin to forward logs to New Relic.
Above configuration is a simple configuration to send the logs to standard output. The content of the file specified for path will be sent to standard output.
5. Validate the installation:
We have successfully done the installation of Logstash and New Relic Plugin. And also configured the plugin. We can now test the plugin function. As mentioned in the section above, we are sending the content of the logfile to standard output for validation. Once the validation is done, we can configure the actual configuration files to direct logs to New Relic Logs.
NOTE: At this point, the logstash is not started. When you install logstash using rpm method, it will not start automatically. But there is a OS service that will be created during installation. Please read the next section to know how to start logstash.
For the validation, Start the logstash using the configuration file that we have created "/u001/app/ag_software/askm.log"
/usr/share/logstash/bin/logstash -f /u001/app/ag_software/askm.log
NOTE : Above command will not return the prompt.
Now we can populate the logfile with some content using the following command. Execute the below command from a different terminal.
Validating with New Relic Logs :
- Create the configuration file in location /etc/logstash/logstash.conf
- Start the logstash service which is created as part of installation.
- Send some text messages to the logfile configured in above configuration for path variable.
- Validate the logs in New Relic.