<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4</id>
	<title>GRAYLOG - Install Script On Ubuntu 24.4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://it-arts.net/index.php?action=history&amp;feed=atom&amp;title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4"/>
	<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;action=history"/>
	<updated>2026-05-02T20:44:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;diff=949&amp;oldid=prev</id>
		<title>Admin: Text replacement - &quot;Category:Wiki&quot; to &quot;Category:Wiki

&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;
&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;diff=949&amp;oldid=prev"/>
		<updated>2026-01-17T07:12:15Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;&amp;quot; to &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  &amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&amp;#039;&amp;#039;&amp;#039;&amp;#039;&amp;#039; &amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:12, 17 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;&#039;&#039;&#039;[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]&#039;&#039;&#039;&#039;&#039;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== install_graylog.sh ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== install_graylog.sh ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;diff=529&amp;oldid=prev</id>
		<title>Admin at 10:22, 14 December 2025</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;diff=529&amp;oldid=prev"/>
		<updated>2025-12-14T10:22:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:22, 14 December 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Wiki]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;install_plex&lt;/del&gt;.sh ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;install_graylog&lt;/ins&gt;.sh ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;nowiki&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;diff=527&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;Category:Wiki  == install_plex.sh ==   &lt;nowiki&gt; #!/bin/bash  # Exit on errors set -e  # Script Variables GRAYLOG_VERSION=&quot;4.5.0&quot; MONGO_VERSION=&quot;4.2&quot; ES_VERSION=&quot;7.x&quot;  # Function to install dependencies install_dependencies() {     echo &quot;Installing required dependencies...&quot;     sudo apt update &amp;&amp; sudo apt upgrade -y     sudo apt install -y openjdk-11-jre-headless wget curl apt-transport-https gnupg2 lsb-release }  # Function to install and configure MongoDB install_mo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://it-arts.net/index.php?title=GRAYLOG_-_Install_Script_On_Ubuntu_24.4&amp;diff=527&amp;oldid=prev"/>
		<updated>2025-12-14T10:17:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/index.php/Category:Wiki&quot; title=&quot;Category:Wiki&quot;&gt;Category:Wiki&lt;/a&gt;  == install_plex.sh ==   &amp;lt;nowiki&amp;gt; #!/bin/bash  # Exit on errors set -e  # Script Variables GRAYLOG_VERSION=&amp;quot;4.5.0&amp;quot; MONGO_VERSION=&amp;quot;4.2&amp;quot; ES_VERSION=&amp;quot;7.x&amp;quot;  # Function to install dependencies install_dependencies() {     echo &amp;quot;Installing required dependencies...&amp;quot;     sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y     sudo apt install -y openjdk-11-jre-headless wget curl apt-transport-https gnupg2 lsb-release }  # Function to install and configure MongoDB install_mo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Wiki]]&lt;br /&gt;
&lt;br /&gt;
== install_plex.sh ==&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
# Exit on errors&lt;br /&gt;
set -e&lt;br /&gt;
&lt;br /&gt;
# Script Variables&lt;br /&gt;
GRAYLOG_VERSION=&amp;quot;4.5.0&amp;quot;&lt;br /&gt;
MONGO_VERSION=&amp;quot;4.2&amp;quot;&lt;br /&gt;
ES_VERSION=&amp;quot;7.x&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Function to install dependencies&lt;br /&gt;
install_dependencies() {&lt;br /&gt;
    echo &amp;quot;Installing required dependencies...&amp;quot;&lt;br /&gt;
    sudo apt update &amp;amp;&amp;amp; sudo apt upgrade -y&lt;br /&gt;
    sudo apt install -y openjdk-11-jre-headless wget curl apt-transport-https gnupg2 lsb-release&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to install and configure MongoDB&lt;br /&gt;
install_mongo() {&lt;br /&gt;
    echo &amp;quot;Installing MongoDB...&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    # Import MongoDB public key and set up the MongoDB repository&lt;br /&gt;
    wget -qO - https://www.mongodb.org/static/pgp/server-${MONGO_VERSION}.asc | sudo apt-key add -&lt;br /&gt;
    echo &amp;quot;deb http://repo.mongodb.org/apt/ubuntu $(lsb_release -sc)/mongodb-org/${MONGO_VERSION} multiverse&amp;quot; | sudo tee /etc/apt/sources.list.d/mongodb-org-${MONGO_VERSION}.list&lt;br /&gt;
    &lt;br /&gt;
    # Install MongoDB&lt;br /&gt;
    sudo apt update&lt;br /&gt;
    sudo apt install -y mongodb-org&lt;br /&gt;
&lt;br /&gt;
    # Enable and start MongoDB service&lt;br /&gt;
    sudo systemctl enable mongod&lt;br /&gt;
    sudo systemctl start mongod&lt;br /&gt;
&lt;br /&gt;
    # Ensure MongoDB is running&lt;br /&gt;
    sudo systemctl status mongod&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to install and configure Elasticsearch&lt;br /&gt;
install_elasticsearch() {&lt;br /&gt;
    echo &amp;quot;Installing Elasticsearch...&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    # Install and import the public signing key for Elasticsearch&lt;br /&gt;
    wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -&lt;br /&gt;
    echo &amp;quot;deb https://artifacts.elastic.co/packages/${ES_VERSION}/apt stable main&amp;quot; | sudo tee -a /etc/apt/sources.list.d/elastic-${ES_VERSION}.list&lt;br /&gt;
    &lt;br /&gt;
    # Install Elasticsearch&lt;br /&gt;
    sudo apt update&lt;br /&gt;
    sudo apt install -y elasticsearch&lt;br /&gt;
    &lt;br /&gt;
    # Configure Elasticsearch to bind to localhost only (for security)&lt;br /&gt;
    sudo sed -i &amp;#039;s/#network.host: 192.168.0.1/network.host: localhost/&amp;#039; /etc/elasticsearch/elasticsearch.yml&lt;br /&gt;
&lt;br /&gt;
    # Enable and start Elasticsearch service&lt;br /&gt;
    sudo systemctl enable elasticsearch&lt;br /&gt;
    sudo systemctl start elasticsearch&lt;br /&gt;
&lt;br /&gt;
    # Ensure Elasticsearch is running&lt;br /&gt;
    sudo systemctl status elasticsearch&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to install Graylog&lt;br /&gt;
install_graylog() {&lt;br /&gt;
    echo &amp;quot;Installing Graylog...&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    # Add Graylog repository and install public key&lt;br /&gt;
    wget -qO - https://packages.graylog2.org/repo/packages/graylog-4.x/apt/doc/graylog.asc | sudo apt-key add -&lt;br /&gt;
    echo &amp;quot;deb https://packages.graylog2.org/repo/debian/ stable 4.x&amp;quot; | sudo tee /etc/apt/sources.list.d/graylog.list&lt;br /&gt;
    &lt;br /&gt;
    # Install Graylog&lt;br /&gt;
    sudo apt update&lt;br /&gt;
    sudo apt install -y graylog-server&lt;br /&gt;
    &lt;br /&gt;
    # Enable Graylog service&lt;br /&gt;
    sudo systemctl enable graylog-server&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to configure Graylog&lt;br /&gt;
configure_graylog() {&lt;br /&gt;
    echo &amp;quot;Configuring Graylog...&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    # Set a secret key for Graylog (you can replace this with a custom string)&lt;br /&gt;
    SECRET_KEY=$(openssl rand -base64 64)&lt;br /&gt;
    sudo sed -i &amp;quot;s/^#root_password_sha2.*$/root_password_sha2 = $(echo -n &amp;#039;admin&amp;#039; | sha256sum | cut -d &amp;#039; &amp;#039; -f 1)/&amp;quot; /etc/graylog/server/server.conf&lt;br /&gt;
    sudo sed -i &amp;quot;s/^#password_secret = .*/password_secret = $SECRET_KEY/&amp;quot; /etc/graylog/server/server.conf&lt;br /&gt;
&lt;br /&gt;
    # Set MongoDB URI (adjust if necessary)&lt;br /&gt;
    sudo sed -i &amp;#039;s/^#mongodb_uri = mongodb:\/\/127.0.0.1:27017\/graylog/.mongodb_uri = mongodb:\/\/127.0.0.1:27017\/graylog/&amp;#039; /etc/graylog/server/server.conf&lt;br /&gt;
&lt;br /&gt;
    # Set Elasticsearch connection&lt;br /&gt;
    sudo sed -i &amp;#039;s/^#elasticsearch_hosts = .*/elasticsearch_hosts = http:\/\/127.0.0.1:9200/&amp;#039; /etc/graylog/server/server.conf&lt;br /&gt;
&lt;br /&gt;
    # Set the Graylog web interface URL (adjust if necessary)&lt;br /&gt;
    sudo sed -i &amp;#039;s/^#web_interface_address = .*/web_interface_address = 0.0.0.0/&amp;#039; /etc/graylog/server/server.conf&lt;br /&gt;
    sudo sed -i &amp;#039;s/^#http_bind_address = .*/http_bind_address = 0.0.0.0:9000/&amp;#039; /etc/graylog/server/server.conf&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to start Graylog service&lt;br /&gt;
start_graylog() {&lt;br /&gt;
    echo &amp;quot;Starting Graylog...&amp;quot;&lt;br /&gt;
    sudo systemctl start graylog-server&lt;br /&gt;
&lt;br /&gt;
    # Check if Graylog is running&lt;br /&gt;
    sudo systemctl status graylog-server&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to configure firewall (optional, adjust as needed)&lt;br /&gt;
configure_firewall() {&lt;br /&gt;
    echo &amp;quot;Configuring firewall...&amp;quot;&lt;br /&gt;
    &lt;br /&gt;
    # Allow Graylog and Elasticsearch ports through firewall&lt;br /&gt;
    sudo ufw allow 9000/tcp  # Graylog Web Interface&lt;br /&gt;
    sudo ufw allow 9200/tcp  # Elasticsearch&lt;br /&gt;
    sudo ufw enable&lt;br /&gt;
    sudo ufw status&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Function to display the web interface URL&lt;br /&gt;
display_access_info() {&lt;br /&gt;
    echo &amp;quot;Graylog installation complete!&amp;quot;&lt;br /&gt;
    echo &amp;quot;Access Graylog Web Interface at: http://&amp;lt;your-server-ip&amp;gt;:9000&amp;quot;&lt;br /&gt;
    echo &amp;quot;Default username: admin&amp;quot;&lt;br /&gt;
    echo &amp;quot;Default password: admin&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# Main execution&lt;br /&gt;
install_dependencies&lt;br /&gt;
install_mongo&lt;br /&gt;
install_elasticsearch&lt;br /&gt;
install_graylog&lt;br /&gt;
configure_graylog&lt;br /&gt;
start_graylog&lt;br /&gt;
configure_firewall&lt;br /&gt;
display_access_info&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
exit 0&amp;lt;/nowiki&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>