Skip to content

Commit

Permalink
update devops
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifailon committed Aug 26, 2024
1 parent de53558 commit 63bbebf
Show file tree
Hide file tree
Showing 27 changed files with 123 additions and 2,951 deletions.
20 changes: 0 additions & 20 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -637,26 +637,6 @@









<li class="md-nav__item">
<a href="/TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
20 changes: 0 additions & 20 deletions API/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1184,26 +1184,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
20 changes: 0 additions & 20 deletions ActiveDirectory/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -830,26 +830,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
20 changes: 0 additions & 20 deletions COM/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -776,26 +776,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
20 changes: 0 additions & 20 deletions Database/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1292,26 +1292,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
98 changes: 78 additions & 20 deletions DevOps/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,15 @@
</ul>
</nav>

</li>

<li class="md-nav__item">
<a href="#graylog" class="md-nav__link">
<span class="md-ellipsis">
Graylog
</span>
</a>

</li>

<li class="md-nav__item">
Expand Down Expand Up @@ -1160,26 +1169,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down Expand Up @@ -1388,6 +1377,15 @@
</ul>
</nav>

</li>

<li class="md-nav__item">
<a href="#graylog" class="md-nav__link">
<span class="md-ellipsis">
Graylog
</span>
</a>

</li>

<li class="md-nav__item">
Expand Down Expand Up @@ -2205,6 +2203,66 @@ <h3 id="active-choices-parameter">Active Choices Parameter</h3>
}
}
</code></pre>
<h2 id="graylog">Graylog</h2>
<p><a href="https://hub.docker.com/r/itzg/graylog">Graylog Docker Image</a></p>
<ul>
<li>Установка MongoDB:</li>
</ul>
<pre><code class="language-shell">docker run --name mongo -d mongo:3
</code></pre>
<ul>
<li>Используем прокси для установки Elassticsearch:</li>
</ul>
<pre><code class="language-shell">docker run --name elasticsearch \
-e &quot;http.host=0.0.0.0&quot; -e &quot;xpack.security.enabled=false&quot; \
-d dockerhub.timeweb.cloud/library/elasticsearch:5.5.1
</code></pre>
<ul>
<li>Указать статический IP адрес для подключения к API</li>
</ul>
<pre><code class="language-shell">docker run --name Graylog \
--link mongo \
--link elasticsearch \
-p 9000:9000 -p 12201:12201 -p 514:514 -p 5044:5044 \
-e GRAYLOG_WEB_ENDPOINT_URI=&quot;http://192.168.3.101:9000/api&quot; \
-d graylog/graylog:2.3.2-1
</code></pre>
<ul>
<li>Настройка syslog на клиенте Linux:</li>
</ul>
<p><code>nano /etc/rsyslog.d/graylog.conf</code></p>
<pre><code class="language-shell">*.* @@192.168.3.101:514;RSYSLOG_SyslogProtocol23Format
</code></pre>
<p><code>systemctl restart rsyslog</code></p>
<ul>
<li>Создать входящий поток (inputs) для Syslog на порту 514 по протоколу TCP:</li>
</ul>
<p>http://192.168.3.101:9000/system/inputs</p>
<ul>
<li>Фильтр для логов Kinozal-Bot:</li>
</ul>
<p><code>facility:"system daemon" AND application_name:bash AND message:\[ AND message:\]</code></p>
<ul>
<li>Настройка Winlogbeat на клиенте Windows:</li>
</ul>
<p>Установка агента:</p>
<pre><code class="language-PowerShell">irm https://artifacts.elastic.co/downloads/beats/winlogbeat/winlogbeat-8.15.0-windows-x86_64.zip -OutFile $home\Documents\winlogbeat-8.15.0.zip
Expand-Archive $home\Documents\winlogbeat-8.15.0.zip
cd $home\Documents\winlogbeat-8.15.0-windows-x86_64
</code></pre>
<p>Добавить отправку в Logstash:</p>
<p><code>code winlogbeat.yml</code></p>
<pre><code class="language-shell">output.logstash:
hosts: [&quot;192.168.3.101:5044&quot;]
</code></pre>
<p>И закомментировать отправку данных в Elasticsearch (output.elasticsearch)</p>
<p><code>.\winlogbeat.exe -c winlogbeat.yml</code> запустить агент с правами администратора в консоли</p>
<pre><code class="language-shell">.\install-service-winlogbeat.ps1 # установить службу
Get-Service winlogbeat | Start-Service
</code></pre>
<ul>
<li>Настроить Inputs для приема Beats на порту 5044</li>
</ul>
<h2 id="ansible">Ansible</h2>
<p><code>apt -y update &amp;&amp; apt -y upgrade</code> <br />
<code>apt -y install ansible</code> v2.10.8 <br />
Expand Down
20 changes: 0 additions & 20 deletions Docker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1001,26 +1001,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
20 changes: 0 additions & 20 deletions Exchange/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -902,26 +902,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
20 changes: 0 additions & 20 deletions FileSystem/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -944,26 +944,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
22 changes: 0 additions & 22 deletions Linux/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
<link rel="prev" href="../Docker/">


<link rel="next" href="../TorAPI/">


<link rel="icon" href="../Logo/PowerShell-Logo.png">
<meta name="generator" content="mkdocs-1.6.0, mkdocs-material-9.5.20">
Expand Down Expand Up @@ -2489,26 +2487,6 @@









<li class="md-nav__item">
<a href="../TorAPI/" class="md-nav__link">


<span class="md-ellipsis">
🍿 TorAPI
</span>


</a>
</li>



</ul>
</nav>
</div>
Expand Down
Loading

0 comments on commit 63bbebf

Please sign in to comment.