<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Debug School: Narasing Jaya Bharath Reddy</title>
    <description>The latest articles on Debug School by Narasing Jaya Bharath Reddy (@njayabharathreddy86_674).</description>
    <link>https://www.debug.school/njayabharathreddy86_674</link>
    <image>
      <url>https://www.debug.school/images/c2ZxuawS3hKoYRGibjvLy_aIn5MXocO-3uU58s05AzU/rs:fill:90:90/g:sm/mb:500000/ar:1/aHR0cHM6Ly93d3cu/ZGVidWcuc2Nob29s/L3VwbG9hZHMvdXNl/ci9wcm9maWxlX2lt/YWdlLzc0LzVjMzM5/MjkzLTYzOTMtNDYy/Yi05OTMxLTkyYzEw/OGY0YTRlMy5wbmc</url>
      <title>Debug School: Narasing Jaya Bharath Reddy</title>
      <link>https://www.debug.school/njayabharathreddy86_674</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://www.debug.school/feed/njayabharathreddy86_674"/>
    <language>en</language>
    <item>
      <title>Log analysis</title>
      <dc:creator>Narasing Jaya Bharath Reddy</dc:creator>
      <pubDate>Thu, 15 Sep 2022 05:44:08 +0000</pubDate>
      <link>https://www.debug.school/njayabharathreddy86_674/log-analysis-2p9o</link>
      <guid>https://www.debug.school/njayabharathreddy86_674/log-analysis-2p9o</guid>
      <description>&lt;ol&gt;
&lt;li&gt;Write down top 10 events in Windows and identify their event ID&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;ANS: &lt;br&gt;
app error --- 1000&lt;br&gt;
app hang---1002&lt;br&gt;
bsod ---1001&lt;br&gt;
wer--1001&lt;br&gt;
emet -- 1or 2&lt;br&gt;
account lockouts ---4740&lt;br&gt;
security enables group modification ---4735&lt;br&gt;
successful user account login ---4624&lt;br&gt;
failed user account logout ---4625&lt;br&gt;
user added to privileged group ---4728/4732/4756&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Write down top 10 events in Linux and identify their pattern and log linux&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2019-05-14 15:53:16.109 EDT [609] LOG:  received fast shutdown request&lt;br&gt;
2019-05-14 15:53:16.131 EDT [609] LOG:  aborting any active transactions&lt;br&gt;
2019-05-14 15:53:16.143 EDT [609] LOG:  background worker "logical replication launcher" (PID 754) exited with exit code 1&lt;br&gt;
2019-05-14 15:53:16.147 EDT [748] LOG:  shutting down&lt;br&gt;
2019-05-14 15:53:16.215 EDT [609] LOG:  database system is shut down&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify the log file in linux which log service start|stop|enable|disable&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;cpupower.service      disabled&lt;/p&gt;

&lt;p&gt;crond.service         enabled&lt;br&gt;
Stopped foo.service&lt;br&gt;
Started foo.service&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify the log file in linux which log process running or killed.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;pkill sleep //var/log/messages from there we can see the killed process&lt;br&gt;
ps -ef&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Identify the log file of apache and find out list of VERB and count of each using linux command&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Apache access log (success - code 200):¶&lt;br&gt;
192.168.2.20 - - [28/Jul/2006:10:27:10 -0300] "GET /cgi-bin/try/ HTTP/1.0" 200 3395&lt;br&gt;
127.0.0.1 - - [28/Jul/2006:10:22:04 -0300] "GET / HTTP/1.0" 200 2216&lt;br&gt;
Apache access log (failure - code 4xx):¶&lt;br&gt;
127.0.0.1 - - [28/Jul/2006:10:27:32 -0300] "GET /hidden/ HTTP/1.0" 404 7218&lt;br&gt;
Apache unnacepted request methods (caused by TortoiseSVN):¶&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:07:01:53 -0700] "PROPFIND /svn/[xxxx]/Extranet/branches/SOW-101 HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:07:01:51 -0700] "PROPFIND /svn/[xxxx]/[xxxx]/trunk HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:07:00:53 -0700] "PROPFIND /svn/[xxxx]/[xxxx]/2.5 HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:07:00:53 -0700] "PROPFIND /svn/[xxxx]/Extranet/branches/SOW-101 HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:07:00:21 -0700] "PROPFIND /svn/[xxxx]/[xxxx]/trunk HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:06:59:53 -0700] "PROPFIND /svn/[xxxx]/[xxxx]/2.5 HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:06:59:50 -0700] "PROPFIND /svn/[xxxx]/[xxxx]/trunk HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:06:58:52 -0700] "PROPFIND /svn/[xxxx]/[xxxx]/trunk HTTP/1.1" 401 587&lt;br&gt;
x.x.x.90 - - [13/Sep/2006:06:58:52 -0700] "PROPFIND /svn/[xxxx]/Extranet/branches/SOW-101 HTTP/1.1" 401 587&lt;br&gt;
Apache error log:¶&lt;br&gt;
[Fri Dec 16 01:46:23 2005] [error] [client 1.2.3.4] Directory index forbidden by rule: /home/test/&lt;br&gt;
[Fri Dec 16 01:54:34 2005] [error] [client 1.2.3.4] Directory index forbidden by rule: /apache/web-data/test2&lt;br&gt;
[Fri Dec 16 02:25:55 2005] [error] [client 1.2.3.4] Client sent malformed Host header&lt;br&gt;
[Mon Dec 19 23:02:01 2005] [error] [client 1.2.3.4] user test: authentication failure for "/~dcid/test1": Password Mismatch&lt;br&gt;
Apache error log (startup) 3 examples:¶&lt;br&gt;
** Normal (v2.x)&lt;br&gt;
[Sat Aug 12 04:05:51 2006] [notice] Apache/1.3.11 (Unix) mod_perl/1.21 configured -- resuming normal operations&lt;br&gt;
[Thu Jun 22 14:20:55 2006] [notice] Digest: generating secret for digest authentication ...&lt;br&gt;
[Thu Jun 22 14:20:55 2006] [notice] Digest: done&lt;br&gt;
[Thu Jun 22 14:20:55 2006] [notice] Apache/2.0.46 (Red Hat) DAV/2 configured -- resuming normal operations&lt;/p&gt;

&lt;p&gt;** Restart by HUP signal (optional suEXEC)&lt;br&gt;
[Sat Aug 12 04:05:49 2006] [notice] SIGHUP received.  Attempting to restart&lt;br&gt;
[Sat Aug 12 04:05:51 2006] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/sbin/suexec)&lt;/p&gt;

&lt;p&gt;** after 'unclean' shutdown (left over PID file)&lt;br&gt;
[Sat Jun 24 09:06:22 2006] [warn] pid file /opt/CA/BrightStorARCserve/httpd/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?&lt;br&gt;
[Sat Jun 24 09:06:23 2006] [notice] Apache/2.0.46 (Red Hat) DAV/2 configured -- resuming normal operations&lt;br&gt;
[Sat Jun 24 09:06:22 2006] [notice] Digest: generating secret for digest authentication ...&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Understanding Datadog Agent</title>
      <dc:creator>Narasing Jaya Bharath Reddy</dc:creator>
      <pubDate>Tue, 13 Sep 2022 10:04:05 +0000</pubDate>
      <link>https://www.debug.school/njayabharathreddy86_674/understanding-datadog-agent-47if</link>
      <guid>https://www.debug.school/njayabharathreddy86_674/understanding-datadog-agent-47if</guid>
      <description>&lt;ol&gt;
&lt;li&gt;What is Datadog agent?
The Datadog Agent is software that runs on your hosts. It collects events and metrics from hosts and sends them to Datadog, where you can analyze your monitoring and performance data. The Datadog Agent is open source and its source code is available on GitHub at DataDog/datadog-agent.
It collects the information like disk, cpu, memory,uptime.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.Type of Datadog Agent? &lt;br&gt;
Agent check&lt;br&gt;
DogStatsD&lt;br&gt;
Datadog’s HTTP API&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Ports used to in Datadog agent? &lt;br&gt;
PORT    DESCRIPTION&lt;br&gt;
5000    Exposes runtime metrics about the Agent.&lt;br&gt;
5001    Used by the Agent CLI and GUI to send commands and pull information from the running Agent.&lt;br&gt;
5002    Serves the GUI server on Windows and OSX.&lt;br&gt;
8125    Used for the DogStatsD server to receive external metrics.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Top 5 commands with simple explanation troubleshooting Datadog agent? &lt;br&gt;
startsrc datadog-agent&lt;br&gt;
systemctl restart httpd&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;systemctl status apache2&lt;br&gt;
datadog-agent configcheck&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Locate how to enable Logs monitoring in datadog.yaml To enable log collection, set logs_enabled to true in your datadog.yaml file.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;5 techniques for troubleshooting Datadog?&lt;br&gt;
IF you are unable to  change the .txt file to ppk format go to folder change the permissions, click on Veiwoptions, select change folder and search option. A new window will be opened and there select View tab then uncheck the Hide extensions for know file types.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are unable to open the yaml file from the folder , right click the folder select properties and click on security the click on advance button then click on continue give the full premission to the users.&lt;br&gt;
Verify API token (datadog.yaml)&lt;br&gt;
Datadog Agent is running or not under services&lt;br&gt;
check if logs enabled under config file&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
