<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Building IT</title>
	<atom:link href="https://it.amid.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://it.amid.com/</link>
	<description>Making Sense of Information Technology</description>
	<lastBuildDate>Sat, 07 Nov 2020 00:22:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Understanding ITIL v4 for Infrastructure and Platform Management</title>
		<link>https://it.amid.com/2020/10/12/understanding-itil-v4-for-infrastructure-and-platform-management/</link>
					<comments>https://it.amid.com/2020/10/12/understanding-itil-v4-for-infrastructure-and-platform-management/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Mon, 12 Oct 2020 19:59:47 +0000</pubDate>
				<category><![CDATA[Business Process]]></category>
		<category><![CDATA[cybersecurity]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[infrastructure]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[standards]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=611</guid>

					<description><![CDATA[<p>The IT Infrastructure Library (ITIL) is the de-facto standard around the world as a guide for IT professionals to manage IT services. It is designed to be customer focused, quality driven, and economical. It evolved from a standard defined in Great Britain by their Central Computing and Telecommunications Agency (CCTA) back in the 80&#8217;s. The [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2020/10/12/understanding-itil-v4-for-infrastructure-and-platform-management/">Understanding ITIL v4 for Infrastructure and Platform Management</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The IT Infrastructure Library (ITIL) is the de-facto standard around the world as a guide for IT professionals to manage IT services.  It is designed to be customer focused, quality driven, and economical.  It evolved from a standard defined in Great Britain by their Central Computing and Telecommunications Agency (CCTA) back in the 80&#8217;s.  The British government needed a unified standard to improve the quality of IT services they had received.  The result was this compilation of best practices, and it&#8217;s being used by other IT organizations around the world.</p>



<p>After several iterations, the ITIL standard is now on version 4, published in February 2019.  The key components of ITIL 4 are the four dimensions model of service agreement, and the ITIL Service Value System (SVS), illustrated in the diagram below:</p>



<figure class="wp-block-image size-large"><img decoding="async" src="https://yasm.com/wiki/en/img/yasm-frameworks/itil/itil-4-components.jpg" alt=""/><figcaption>ITILv4 Key Components (source YASM Wiki)</figcaption></figure>



<p>The four dimensions model are:</p>



<ol class="wp-block-list"><li>Organizations and People</li><li>Information and Technology</li><li>Partners and Suppliers</li><li>Value Streams and Processes</li></ol>



<p>More detailed explanation of the model and components are in the <a href="https://yasm.com/wiki/en/index.php/ITIL#ITIL_4" rel="noreferrer noopener nofollow" target="_blank">YASM Wiki site.</a></p>



<p>For IT System Administrators and Managers, ITIL 4 framework has a focus on overseeing the infrastructure and platforms used by organization that enables monitoring of available technology solutions.  It includes a model to manage vendors providing Software as a Service (SaaS) and cloud computing environments, as a way of flexible and on-demand expansion. It outlines requirements for configurable computing resources and network access.</p>



<p>The framework of ITIL 4 for IT infrastructure and platform management, stem from the following:</p>



<ol class="wp-block-list"><li>IT Infrastructure components such as physical (ie. Dell, HP, Sparc servers), or virtual (ie. VMWare, Citrix, AWS), including the technologies used behind-the-scene, such as storage, network, Middleware applications (ie. <a href="https://it.amid.com/tag/jboss/" target="_blank" rel="noreferrer noopener">JBOSS</a>, <a href="https://it.amid.com/tag/elasticsearch/" target="_blank" rel="noreferrer noopener">Elasticsearch</a>), and Operating Systems (ie. <a href="https://it.amid.com/tag/red-hat/" target="_blank" rel="noreferrer noopener">Linux</a>, Windows).<br></li><li>Develop an implementation and administration strategy for infrastructure or platform that is unique for the organization, to fulfill the business and technical requirements.<br></li><li>Design communication methods between the organization&#8217;s own systems (cloud or on-premise), as well as to vendors in a secure and efficient way.</li></ol>



<p>Of course, the above key concepts are an over simplification of the actual implementation.  Running a data center is difficult and can be costly.  Software is not perfect and fails without proper maintenance. Cybersecurity is complex, both in social and technological contexts. Technology keeps changing that will require constant training of the IT staff to keep up to date.</p>



<p>These are some of the reason why guidelines like ITIL 4 is valuable for IT Managers and Directors to be familiar with. It serves as a starting point to build IT infrastructure and platforms. They need to apply the practice on their own organization. With proper investment, going through many deployment iterations and lessons learned, an organization will be able to achieve the desired stability and security required.</p>
<p>The post <a href="https://it.amid.com/2020/10/12/understanding-itil-v4-for-infrastructure-and-platform-management/">Understanding ITIL v4 for Infrastructure and Platform Management</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2020/10/12/understanding-itil-v4-for-infrastructure-and-platform-management/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Be Prepared For An Outage</title>
		<link>https://it.amid.com/2019/08/07/be-prepared-for-an-outage/</link>
					<comments>https://it.amid.com/2019/08/07/be-prepared-for-an-outage/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Wed, 07 Aug 2019 23:04:00 +0000</pubDate>
				<category><![CDATA[Business Process]]></category>
		<category><![CDATA[The Job]]></category>
		<category><![CDATA[cybersecurity]]></category>
		<category><![CDATA[data center]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[outage]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=589</guid>

					<description><![CDATA[<p>The top question among IT professionals is always this: How prepared are we during an outage or data loss? The typical follow up questions would be: What are the root causes? How do we recover? How do we prevent it from happening again? What is the cost of the damage? The Ponemon Institute study (2016) [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/08/07/be-prepared-for-an-outage/">Be Prepared For An Outage</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The top question among IT professionals is always this:</p>



<p style="text-align:center"><em>How prepared are we during an outage or data loss?</em></p>



<p>The typical follow up questions would be:</p>



<ul class="wp-block-list"><li>What are the root causes?</li><li>How do we recover?</li><li>How do we prevent it from happening again?</li><li>What is the cost of the damage?</li></ul>



<p>The <a href="https://www.vertiv.com/globalassets/documents/">Ponemon Institute study (2016) showed the most common cause of outages</a> are UPS power failure, cyber crime, and human error. If the research is conducted now (2019), cyber crime will probably be on top &#8211; as seen from today&#8217;s headlines with many banks and corporations (including <a href="https://www.zdnet.com/article/cyberattacks-against-industrial-targets-double-over-the-last-6-months/">manufacturing sector</a>) hacked and data breached.  The report also indicates this, as the trend jumped from 2% in 2010 to 22% in 2016!</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="571" height="500" src="https://it.amid.com/wp-content/uploads/2019/08/ponemon_ins_study_datacenter_outages.png" alt="" class="wp-image-592" srcset="https://it.amid.com/wp-content/uploads/2019/08/ponemon_ins_study_datacenter_outages.png 571w, https://it.amid.com/wp-content/uploads/2019/08/ponemon_ins_study_datacenter_outages-300x263.png 300w" sizes="(max-width: 571px) 100vw, 571px" /><figcaption>Ponemon Institute Research Report (2016)<br>Root Causes of Unplanned Outages</figcaption></figure>



<p>Preparation for inevitable disasters will certainly involve more investment in cyber security training and update outdated software and hardware. It also helps to keep things simple, and not introduce unproven technology just for the sake of being trendy, or on the &#8220;bleeding edge&#8221;.</p>



<p>It is easier said than done.  However, it&#8217;s not impossible. Management needs to be more aware that complicated business process introduce more human errors.  Introducing many systems can also expose many weaknesses when IT teams tries to connect them together, to share data.  Having multiple sites outside a traditional Enterprise data center also exposes data to be breached either by external hacker, or <a href="https://www.bloomberg.com/news/articles/2019-07-30/tipster-s-email-led-to-arrest-in-massive-capital-one-data-breach">internal leak</a>.</p>



<p>Prevention is certainly the priority for many concerned IT experts. Knowing the common points of failures, additional checks and balances in data recovery services and stressing security concerns for the employees are important first steps.  One can&#8217;t simply wait for the storm to come. Instead, prepare for the storm and budget accordingly.</p>
<p>The post <a href="https://it.amid.com/2019/08/07/be-prepared-for-an-outage/">Be Prepared For An Outage</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/08/07/be-prepared-for-an-outage/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Can Anyone Get Rich from Open Source?</title>
		<link>https://it.amid.com/2019/05/16/can-anyone-get-rich-from-open-source/</link>
					<comments>https://it.amid.com/2019/05/16/can-anyone-get-rich-from-open-source/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Thu, 16 May 2019 19:04:02 +0000</pubDate>
				<category><![CDATA[Business Process]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[elastic]]></category>
		<category><![CDATA[foss]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[open source]]></category>
		<guid isPermaLink="false">http://it.amid.com/?p=256</guid>

					<description><![CDATA[<p>Can any company make money from Open Source?&#160; The idea of open source work is like charity &#8211; it&#8217;s a great service for the community, but it won&#8217;t make anyone rich like Bill Gates, Steve Jobs, or Larry Ellison.&#160; That thought may be right and wrong. One example was MySQL. It was not capable of [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/05/16/can-anyone-get-rich-from-open-source/">Can Anyone Get Rich from Open Source?</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="alignleft is-resized"><img decoding="async" src="https://it.amid.com/wp-content/uploads/2019/05/osi_symbol_0-853x1024.png" alt="" class="wp-image-583" width="164" height="197" srcset="https://it.amid.com/wp-content/uploads/2019/05/osi_symbol_0-853x1024.png 853w, https://it.amid.com/wp-content/uploads/2019/05/osi_symbol_0-250x300.png 250w, https://it.amid.com/wp-content/uploads/2019/05/osi_symbol_0-768x922.png 768w, https://it.amid.com/wp-content/uploads/2019/05/osi_symbol_0-624x749.png 624w, https://it.amid.com/wp-content/uploads/2019/05/osi_symbol_0.png 1500w" sizes="(max-width: 164px) 100vw, 164px" /><figcaption>Open Source Initiative Logo</figcaption></figure></div>



<p>Can any company make money from Open Source?&nbsp; The idea of open source work is like charity &#8211; it&#8217;s a great service for the community, but it won&#8217;t make anyone rich like Bill Gates, Steve Jobs, or Larry Ellison.&nbsp; That thought may be right and wrong.</p>



<p>One example was MySQL.  It was not capable of beating, or even competing, with Oracle Database.&nbsp; However, it was the cheaper (free) solution to run web sites for bloggers (like this one) or SMBs.  Since then, <a href="https://web.archive.org/web/20110720225615/http://www.oracle.com/us/corporate/press/016679_EN">Oracle decided to buy MySQL&#8217;s Innobase engine</a> because of the large install base.&nbsp;The same with Java which was once touted by Sun Microsystems as the ideal platform for Enterprise open-source language, was acquired by default when the Oracle bought Sun.&nbsp;No doubt, Larry Ellison had a thought that with this many users, there was a potential revenue to be made.</p>



<p>A decade ago, there was a speculation that an open source operating system like Linux is a possible money maker.&nbsp; Back then, enterprise customers were still mostly invested in Solaris (Sparc) and Windows (x86) OS.&nbsp; Red Hat was the biggest name in Linux distribution, and they were making money from providing support for it.&nbsp; Now, IBM saw the Linux adoption kept going up, so it was only logical for <a href="https://www.redhat.com/en/about/press-releases/ibm-acquire-red-hat-completely-changing-cloud-landscape-and-becoming-worlds-1-hybrid-cloud-provider">IBM to acquire Red Hat</a>, and the growing customer base along with it.</p>



<p>Linux adoption became bigger when <a href="https://www.theverge.com/2019/5/6/18534687/microsoft-windows-10-linux-kernel-feature">Microsoft decided to include Linux as part of Windows 10 distribution</a>, and contributed a large chunk of their code as open source.&nbsp; The thinking is that contributing to vibrant and open community brings a sort of likeability to giants like Microsoft.&nbsp; It&#8217;s no surprise <a href="https://www.fastcompany.com/company/microsoft">Microsoft is touted to be a better technology innovator</a> than Apple, Samsung, IBM, or even Google.</p>



<p>Speaking of likeability, or &#8220;coolness&#8221; factor,  another example is <a href="https://www.elastic.co/">Elastic</a> offering a solid product based on <a href="https://lucene.apache.org/core/">Lucene open source search engine</a>. With customers like Uber and  SpaceX adopting their (based-on) open source search engine, Elastic is  poised to make plenty of revenue.&nbsp; So much so, they&#8217;re gaining  competition from <a href="https://www.geekwire.com/2019/elasticsearch-distribution-amazon-web-services-sends-shockwaves-open-source-software/">Amazon Web Services offering the same solution based on Elasticsearch open source software</a>.  The potential revenue is definitely available for the taking.</p>



<p>Can anyone get rich from Open Source?&nbsp; Absolutely.&nbsp; As long as there are mass adoptions, rich use cases, growing libraries, and plenty of community experts, open source is now becoming the standard for technology adoption in Enterprise environments.&nbsp; The most successful companies will succeed in the open source game, only if they can make a compelling product that works really well and be able to support it.  The customers are there &#8211; just make them happy!</p>



<p>[EDIT 8/1/2019]: <a href="https://www.wired.com/story/when-open-source-software-comes-with-catches/">Wired has a nice write-up</a> on how companies should take the &#8220;moral&#8221; ground and mutual benefits when it comes to licensing open source software. My thought this can be tricky because of the old saying: &#8220;It&#8217;s just business, nothing personal.&#8221;  Although it&#8217;s nice that we expect people to play nice, making money is a dirty business.</p>
<p>The post <a href="https://it.amid.com/2019/05/16/can-anyone-get-rich-from-open-source/">Can Anyone Get Rich from Open Source?</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/05/16/can-anyone-get-rich-from-open-source/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>TMUX: A Command Line Must!</title>
		<link>https://it.amid.com/2019/05/10/tmux-a-command-line-must/</link>
					<comments>https://it.amid.com/2019/05/10/tmux-a-command-line-must/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Fri, 10 May 2019 20:40:13 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[operatingsystem]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=573</guid>

					<description><![CDATA[<p>When I started with Unix, it was during my college days on a VT-100 terminal, with text command lines. There was even an online chat window using text (remember &#8220;talk&#8221;?). When a GUI was introduced using X Windows on Sun Microsystem Solaris machines, the experience was so different and it was considered to improve productivity [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/05/10/tmux-a-command-line-must/">TMUX: A Command Line Must!</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>When I started with Unix, it was during my college days on a VT-100 terminal, with text command lines.  There was even an online chat window using text (remember &#8220;talk&#8221;?).  When a GUI was introduced using X Windows on Sun Microsystem Solaris machines, the experience was so different and it was considered to improve productivity because we get to multitask.  However, old habits die hard, so even with a GUI, I would have dedicated X-Term windows for command line stuff.  I would run &#8220;screen&#8221; (aka &#8220;Gnu Screen&#8221;) to have multiple (and switchable) windows within X-Term. </p>



<p>The advantages of using screen are:</p>



<ol class="wp-block-list"><li>When my SSH connection is broken, the command line sessions are still working.  Useful when running shell scripts that take a long time to complete.</li><li>Having a shell with command line history, I could review the previous executions, in case I forgot to document something.</li><li>Instead of using the mouse to click on a different window, I use the keyboard shortcut Ctrl-A and the number keys, to switch between screens.  Way quicker.</li></ol>



<p>With the introduction of Red Hat Enterprise Linux 8, I was introduced (read: forced) to use a new screen replacement called TMUX.  Apparently, it&#8217;s not a new util but it&#8217;s way more powerful &#8211; and useful.  After using it for a while, I saw these advantages:</p>



<ol class="wp-block-list"><li>Having a vendor managed Firewall, I didn&#8217;t have a choice for connection keep-alives.  My SSH connections will drop after inactivity.  With TMUX, there&#8217;s a clock display that forces the connection to send data once a minute.  Thus keeping the connection alive &#8211; indefinitely. No more dropped connections and reconnecting effort.</li><li>Being able to run screen within TMUX window is pretty nifty.  I have  another layer of switchable window, which is really handy when I have multiple servers representing the different layers for a site (ie. web, JBOSS, database, etc.)  This is possible because TMUX&#8217;s key bindings for switching window is configurable and by default it&#8217;s different than screen&#8217;s.</li><li>TMUX has window panes, for dashboard like monitoring.  Plus, it looks awesome!</li></ol>



<figure class="wp-block-image"><a href="https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt.png" rel="shadowbox[sbpost-573];player=img;" target="_blank"><img decoding="async" width="1024" height="592" src="https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt-1024x592.png" alt="" class="wp-image-578" srcset="https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt-1024x592.png 1024w, https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt-300x173.png 300w, https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt-768x444.png 768w, https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt-624x361.png 624w, https://it.amid.com/wp-content/uploads/2019/05/tmux_mycapt.png 1228w" sizes="(max-width: 1024px) 100vw, 1024px" /></a><figcaption>My tmux screen with split panes (For demo only. I usually like to see one window at a time)</figcaption></figure>



<p>Most of the Red Hat Enterprise Linux I&#8217;m working with is version 6.x, TMUX is not included as part of RHN repository. Thus, I had to build it from source. These are the steps to do it:</p>



<ol class="wp-block-list"><li>Download, compile, and install the latest <a href="https://github.com/libevent/libevent/releases">libevent</a> and <a href="http://ftp.gnu.org/gnu/ncurses/">ncurses</a>.</li><li>Download <a href="https://github.com/tmux/tmux">TMUX </a>and compile using the following configure flags (note, I installed on local home directory):<br><code>CFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses" LDFLAGS="-L$HOME/local/lib -L$HOME/local/include/ncurses -L$HOME/local/include" CPPFLAGS="-I$HOME/local/include -I$HOME/local/include/ncurses"</code></li></ol>



<p>If there&#8217;s a doubt that command line is important to a sysadmin&#8217;s daily work, Microsoft Developers are proud to present an expanded version of Windows OS command prompt.  The video below has the full highlights and it looks great!</p>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Windows Terminal: Building a better command line experience for developers - BRK3069" width="625" height="352" src="https://www.youtube.com/embed/KMudkRcwjCw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div><figcaption>Windows Terminal: Building a better command line experience for developers</figcaption></figure>



<p>There&#8217;s even a trailer that rivals an iPhone launch commercial!</p>



<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="The new Windows Terminal" width="625" height="352" src="https://www.youtube.com/embed/8gw0rXPMMPE?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div><figcaption>The new Windows Terminal: Trailer</figcaption></figure>



<p>I&#8217;m excited that Operating System vendors are now providing more robust terminal tools, making command line a much better experience for all of IT folks!</p>
<p>The post <a href="https://it.amid.com/2019/05/10/tmux-a-command-line-must/">TMUX: A Command Line Must!</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/05/10/tmux-a-command-line-must/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Re-Index With Elasticsearch</title>
		<link>https://it.amid.com/2019/04/09/re-index-with-elasticsearch/</link>
					<comments>https://it.amid.com/2019/04/09/re-index-with-elasticsearch/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Tue, 09 Apr 2019 21:19:42 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[elasticsearch]]></category>
		<category><![CDATA[kibana]]></category>
		<category><![CDATA[logs]]></category>
		<category><![CDATA[shell]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=566</guid>

					<description><![CDATA[<p>When dealing with indices, it&#8217;s inevitable there will be a need to change the mapped fields. For example, in a firewall log, due to default mappings, a field like &#8220;RepeatCount&#8221; was stored as text instead of integer. To fix this, first write an ingest pipeline (using Kibana) to convert the field from text to integer: [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/04/09/re-index-with-elasticsearch/">Re-Index With Elasticsearch</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="alignright is-resized"><img loading="lazy" decoding="async" src="https://it.amid.com/wp-content/uploads/2018/11/elastic-logo-V-full-color.png" alt="Elasticsearch Logo" class="wp-image-421" width="110" height="115"/></figure></div>



<p>When dealing with indices, it&#8217;s inevitable there will be a need to  change the mapped fields.  For example, in a firewall log, due to default mappings, a field like &#8220;RepeatCount&#8221; was stored as text instead of integer.  To fix this, first write an <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/accessing-data-in-pipelines.html">ingest pipeline</a> (using Kibana) to convert the field from text to integer:</p>



<pre class="wp-block-code"><code>PUT _ingest/pipeline/string-to-long
{
  "description": "convert RepeatCount field from string into long",
    "processors": [      
      {
        "convert": {
          "field": "RepeatCount",
          "type": "long",
          "ignore_missing": true
        }
      }
    ]
}</code></pre>



<p>Next, run the POST command reindex the old index into the new one, while running the pipeline for conversion:</p>



<pre class="wp-block-code"><code>POST _reindex 
{ 
   "source": { 
      "index": "fwlogs-2019.02.01" 
   }, 
   "dest": { 
      "index": "fwlogs-2019.02.01-v2", 
      "pipeline": "string-to-long"
   } 
}</code></pre>



<p>If there are multiple indices, it&#8217;s recommended to use a shell script to deal with the individual index systematically, such as &#8220;fwlogs-2019.02.01&#8221;, &#8220;fwlogs-2019.02.02&#8221;, etc.</p>



<pre class="wp-block-code"><code>#!/bin/sh
# The list of index names in rlist.txt file
LIST=`cat rlist.txt`
for index in $LIST; do
  curl -HContent-Type:application/json --user elastic:password -XPOST https://mysearch.domain.net:9200/_reindex?pretty -d'{
    "source": {
      "index": "'$index'"
    },
    "dest": {
      "index": "'$index'-v2",
      "pipeline": "string-to-long"
    }
  }'
done</code></pre>



<p>Finally, clean up the old indices by deleting them.  It&#8217;s a temptation to use Kibana to DELETE fwlogs-2019.02*, but beware the new indices have the suffix &#8220;-v2&#8221; and it will be deleted if the wildcard argument is used.  Instead use the shell script to delete based on the names specifically listed in the txt file.</p>



<pre class="wp-block-code"><code>#!/bin/sh
# The list of index names in rlist.txt file
LIST=`cat rlist.txt`
for index in $LIST; do
  curl --user elastic:password -XDELETE "https://mysearch.domain.net:9200/$index"
done</code></pre>



<p></p>
<p>The post <a href="https://it.amid.com/2019/04/09/re-index-with-elasticsearch/">Re-Index With Elasticsearch</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/04/09/re-index-with-elasticsearch/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hype Cycle 2018 For Web Applications</title>
		<link>https://it.amid.com/2019/02/20/hype-cycle-2018-for-web-applications/</link>
					<comments>https://it.amid.com/2019/02/20/hype-cycle-2018-for-web-applications/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Wed, 20 Feb 2019 16:54:30 +0000</pubDate>
				<category><![CDATA[Business Process]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[The Job]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA[gartner]]></category>
		<category><![CDATA[microservices]]></category>
		<category><![CDATA[reactive]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=556</guid>

					<description><![CDATA[<p>Technology changes quickly. This is especially true in web development. With companies such as Google, Facebook, Amazon, or Netflix leading the way, there will always be the &#8220;next best thing&#8221; every IT professional has to pay attention to. Depending on the size and budget, not all companies can invest in the latest trend of technology. [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/02/20/hype-cycle-2018-for-web-applications/">Hype Cycle 2018 For Web Applications</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="aligncenter is-resized"><img loading="lazy" decoding="async" src="https://it.amid.com/wp-content/uploads/2019/02/gartner_hype_cycle.jpg" alt="" class="wp-image-558" width="510" height="328" srcset="https://it.amid.com/wp-content/uploads/2019/02/gartner_hype_cycle.jpg 964w, https://it.amid.com/wp-content/uploads/2019/02/gartner_hype_cycle-300x193.jpg 300w, https://it.amid.com/wp-content/uploads/2019/02/gartner_hype_cycle-768x494.jpg 768w, https://it.amid.com/wp-content/uploads/2019/02/gartner_hype_cycle-624x401.jpg 624w" sizes="(max-width: 510px) 100vw, 510px" /><figcaption>By Jeremykemp at English Wikipedia, CC BY-SA 3.0</figcaption></figure></div>



<p>Technology changes quickly.  This is especially true in web development. With companies such as Google, Facebook, Amazon, or Netflix leading the way, there will always be the &#8220;next best thing&#8221; every IT professional has to pay attention to.  Depending on the size and budget, not all companies can invest in the latest trend of technology.  The question always asked: &#8220;What can we invest in?&#8221;  As a guideline, annually Gartner publishes their infamous <a href="https://en.wikipedia.org/wiki/Hype_cycle">Hype Cycle</a>, that charts the popularity (or decline) of technology.  For those who are on the cutting edge will try to follow anything towards the &#8220;Peak of Inflated Expectations&#8221;, where the technology is hot.  However, the most interesting set are the ones <a href="https://www.gartner.com/doc/3886164/hype-cycle-application-architecture-">sliding into the &#8220;Trough of Disillusionment&#8221;</a>.  In 2018, those web applications were:</p>



<ul class="wp-block-list"><li>Point-of-Decision HTAP</li><li>Cloud-Native Application Architecture</li><li>Reactive Programming</li><li>Microservices</li><li>Mesh App and Service Architecture</li><li>Public Web APIs</li><li>Miniservices</li></ul>



<p>Enterprise has already started to invest  in those declining trendy ideas.&nbsp; However, in order to get to full adoption, IT Professionals have to familiarize with (and embrace) the new technology. It&#8217;ll be a difficult journey, but may be worth the investment. At this point, a great deal of material will be available since the concept has been around for a few years already. This is known as the &#8220;Slope of Enlightenment&#8221;. In order to get started, here are some suggestions on which presentation to listen to:</p>



<ul class="wp-block-list"><li><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.youtube.com/channel/UCTdw38Cw6jcm0atBPA39a0Q/featured" target="_blank">NDC</a></li><li><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.youtube.com/user/GotoConferences/featured" target="_blank">GOTO</a></li><li><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.youtube.com/user/AmazonWebServices/featured" target="_blank">AWS re:Invent</a></li><li><a href="https://www.youtube.com/channel/UCCBVCTuk6uJrN3iFV_3vurg/featured" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">Devoxx</a></li><li><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.youtube.com/user/TechGuyWeb/featured" target="_blank">Traversy Media</a></li><li><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://www.youtube.com/channel/UCp8lLM2JP_1pv6E0NQ38pqw/featured" target="_blank">A Cloud Guru</a></li></ul>



<p>After listening to the presentations, one can determine the trend and make decisions on where/how to go to get Enterprise environments to the next level.  It&#8217;ll take more time to get to the &#8220;Plateau of Productivity&#8221; where value can be realized by streamlining their execution for the long term production use.</p>



<p>Enterprise sure has plenty of work to do!</p>
<p>The post <a href="https://it.amid.com/2019/02/20/hype-cycle-2018-for-web-applications/">Hype Cycle 2018 For Web Applications</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/02/20/hype-cycle-2018-for-web-applications/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Are the Russian (Hackers) Still Coming?</title>
		<link>https://it.amid.com/2019/01/31/are-the-russian-hackers-still-coming/</link>
					<comments>https://it.amid.com/2019/01/31/are-the-russian-hackers-still-coming/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Thu, 31 Jan 2019 19:17:45 +0000</pubDate>
				<category><![CDATA[Business Process]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[The Job]]></category>
		<category><![CDATA[elastic]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[hacker]]></category>
		<category><![CDATA[kibana]]></category>
		<category><![CDATA[logstash]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[web applications]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=530</guid>

					<description><![CDATA[<p>The headlines in the news these days are about hackers attempting to infiltrate sites, mostly from Russia or China. The targets are many American sites, both government and private. How does IT Cybersecurity folks know if they&#8217;re coming? Going through the application logs for all attempts is a start. However, the best source of knowledge [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/01/31/are-the-russian-hackers-still-coming/">Are the Russian (Hackers) Still Coming?</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>The headlines in the news these days are about <a href="https://www.techrepublic.com/article/can-russian-hackers-be-stopped-heres-why-it-might-take-20-years/">hackers attempting to infiltrate sites</a>, mostly from Russia or China.  The targets are many American sites, both government and private.  How does IT Cybersecurity folks know if they&#8217;re coming? Going through the application logs for all attempts is a start.  However, the best source of knowledge is the first line of defense: the Firewall.  So it&#8217;s best to have a tool like <a href="http://elastic.co">Elasticsearch</a> to make a readable report on the firewall logs, to figure out which ports are being probed.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="762" height="739" src="https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_globalmap_probes.jpg" alt="" class="wp-image-528" srcset="https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_globalmap_probes.jpg 762w, https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_globalmap_probes-300x291.jpg 300w, https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_globalmap_probes-624x605.jpg 624w" sizes="(max-width: 762px) 100vw, 762px" /></figure>



<p>It&#8217;s imperative any exposed ports are being denied on the firewall side to prevent any successful hack.  In a real world example, in the past 7 days, the hackers were scanning for popular vulnerable applications such as telnet, RDP (Windows Remote Desktop), Microsoft SQL, or SMTP. </p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="592" height="409" src="https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_table_port_probes.jpg" alt="" class="wp-image-529" srcset="https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_table_port_probes.jpg 592w, https://it.amid.com/wp-content/uploads/2019/01/kibana_visualization_table_port_probes-300x207.jpg 300w" sizes="(max-width: 592px) 100vw, 592px" /></figure>



<p>Thankfully, those ports are being blocked on the firewall.  Unfortunately, this does not deter them from trying again and again.  Network and system admins must put in the due diligence in controlling access and patching applications. No matter the business requirements, security must take precedence and IT Professionals must have the tools to detect, analyze, and protect.</p>
<p>The post <a href="https://it.amid.com/2019/01/31/are-the-russian-hackers-still-coming/">Are the Russian (Hackers) Still Coming?</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/01/31/are-the-russian-hackers-still-coming/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Automatically Renew SSL Cert with LetsEncrypt and getssl</title>
		<link>https://it.amid.com/2019/01/11/automatically-renew-ssl-cert-with-letsencrypt-and-getssl/</link>
					<comments>https://it.amid.com/2019/01/11/automatically-renew-ssl-cert-with-letsencrypt-and-getssl/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Fri, 11 Jan 2019 17:58:30 +0000</pubDate>
				<category><![CDATA[Business Process]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[web server]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=478</guid>

					<description><![CDATA[<p>With the recent federal government shutdown, it&#8217;s quite apparent their IT administrators still renew SSL certificates manually since many government websites went offline after the certs expired. Politics aside, since having secured connection and valid certificates are important these days, it should be a point for administrators to start automating the process. At the very [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2019/01/11/automatically-renew-ssl-cert-with-letsencrypt-and-getssl/">Automatically Renew SSL Cert with LetsEncrypt and getssl</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="alignleft"><img loading="lazy" decoding="async" width="225" height="225" src="https://it.amid.com/wp-content/uploads/2019/01/letsencryptpic.png" alt="Let's Encrypt Logo" class="wp-image-483"/></figure></div>



<p>With the recent federal government shutdown, it&#8217;s quite apparent their IT administrators still renew SSL certificates manually since many <a href="https://www.zdnet.com/article/government-shutdown-tls-certificates-not-renewed-many-websites-are-down/">government websites went offline after the certs expired.</a>  Politics aside, since having secured connection and valid certificates are important these days, it should be a point for administrators to start automating the process.  At the very least, have a project or plan in place to anticipate the shutdown and go through all of the important websites for possible cert renewals, 1-2 months in advance.  As an Enterprise administrator, it&#8217;s also essential to have alerts or calendar reminders to renew an expiring cert.  However, the best solution is to setup an automated job.</p>



<p>This is where tools out there like <a href="https://github.com/srvrco/getssl">getssl</a> and <a href="https://certbot.eff.org/">certbot</a> can help. For this website, getssl is used to automate the SSL renewal process.  The key processes are as follows:</p>



<p>Ensure <a href="https://it.amid.com/2009/01/16/setting-up-apache-web-server-with-secure-http/">Apache web server is setup</a>.  Since getssl relies on obtaining the proper &#8220;ACME&#8221; code from the target website to confirm the correct URL host, a regular port 80 HTTP connection must be made available first.</p>



<p>Per <a href="https://github.com/srvrco/getssl#getting-started">getssl documentation</a>, run the inital setup to create the proper folders and files in <em>$HOME/.getssl</em></p>



<pre class="wp-block-code"><code>getssl -c yourdomain.com</code></pre>



<p>Edit the <em>getssl.cfg</em> in <em>$HOME/.getssl/yourdomain.com</em> folder with the correct directory for Apache web server&#8217;s doc-root and configuration files.  Note, package installed Apache HTTPD uses <em>/etc/apache2</em> as the default config directory.</p>



<p>When getssl is all setup, create a crontab to run getssl twice every month, for timely renewal (within 30 days).  Be sure to restart Apache HTTPD to make sure the web server reloads the latest cert files.</p>



<pre class="wp-block-code"><code>0 9 1,15 * * $HOME/getssl/getssl -u -a > $HOME/getssl/getssl.out.txt 2>&amp;1
</code></pre>



<p></p>
<p>The post <a href="https://it.amid.com/2019/01/11/automatically-renew-ssl-cert-with-letsencrypt-and-getssl/">Automatically Renew SSL Cert with LetsEncrypt and getssl</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2019/01/11/automatically-renew-ssl-cert-with-letsencrypt-and-getssl/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Installing Elasticsearch Client on PHP</title>
		<link>https://it.amid.com/2018/12/27/installing-elasticsearch-client-on-php/</link>
					<comments>https://it.amid.com/2018/12/27/installing-elasticsearch-client-on-php/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Fri, 28 Dec 2018 00:15:45 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[#php]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[elasticsearch]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=471</guid>

					<description><![CDATA[<p>For a simple demonstration of using Elasticsearch programmatically as a web app, it&#8217;s a little more practical to use PHP as a starting point to learn how to connect and display search results. As a guideline, the quick-start instruction from Elastic site is a starting point. To expand (possibly complete) the out of the box [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2018/12/27/installing-elasticsearch-client-on-php/">Installing Elasticsearch Client on PHP</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>For a simple demonstration of using Elasticsearch programmatically as a web app, it&#8217;s a little more practical to use PHP as a starting point to learn how to connect and display search results. As a guideline, the <a href="https://www.elastic.co/guide/en/elasticsearch/client/php-api/current/installation.html">quick-start instruction from Elastic site</a> is a starting point. To expand (possibly complete) the out of the box setup, below are the steps to setup PHP to enable Elasticsearch support.</p>



<p>First, install the PHP Curl support for Apache on Linux:</p>



<pre class="wp-block-code"><code>apt-get -y install php-curl</code></pre>



<p>Setup the PHP Composer in the doc-root folder, as outlined from <a href="https://github.com/elastic/elasticsearch-php">elasticsearch-php github.</a> Setup the php libraries via Composer:  </p>



<pre class="wp-block-code"><code>php composer.phar init
curl -s http://getcomposer.org/installer | php
php composer.phar install --no-dev</code></pre>



<p>Be sure to get the dependency package &#8220;elasticsearch/elasticsearch&#8221; and use the latest version as default.  Note, skip the development package as it&#8217;s not really necessary.</p>



<p>Then, edit the composer.json file to include the directive:</p>



<pre class="wp-block-code"><code>   "require": {
            "elasticsearch/elasticsearch": "~6.0"
   }</code></pre>



<p>Finally, create a test page to see if it can connect to the Elasticsearch server:</p>



<pre class="wp-block-code"><code>&lt;?php

require 'vendor/autoload.php';

use Elasticsearch\ClientBuilder;

$hosts = &#91;
   'http://myelasticsearchhost:9200'
];

$client = ClientBuilder::create()
   ->setHosts($hosts)
   ->build();

$params = &#91;
    'index' => 'myindexname',
    'body' => &#91;
        'query' => &#91;
            'match' => &#91;
                'post_title' => 'elasticsearch'
            ]
        ]
    ]
];

$response = $client->search($params);

$totalhits = $response&#91;'hits']&#91;'total'];
echo "We have $totalhits total hits\n";

echo "&lt;P>The hits are the following:&lt;/P>";
$result = null;
$i=0;
while ($i &lt;= $totalhits)
{
        $result&#91;$i] = $response&#91;'hits']&#91;'hits']&#91;$i]&#91;'_source'];
        $i++;
}

foreach ($result as $key => $value)
{
        echo $value&#91;'post_title'], "&lt;br>";
}

?></code></pre>



<p>Output will look something like this:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>We have 2 total hits</p><p>The hits are the following:</p><p><br>Using Elasticsearch for JBOSS Logs<br>Deleting Entries in Elasticsearch Based On Timestamp </p></blockquote>



<p><strong><em>Update Nov/2019</em></strong>: Since Elasticsearch updated their basic license to include basic username/password security, it&#8217;s advisable to set them up. It&#8217;s a straight-forward addition:</p>



<pre class="wp-block-code"><code>$hosts = &#91;
   &#91;
      'host' => 'myelasticsearchhost',
      'port' => '9200',
      'scheme' => 'http',
      'user' => 'myElasticUser',
      'pass' => 'myPassword'
   ]
];
</code></pre>



<p><strong>Edit November 6, 2020</strong>: If there&#8217;s an upgrade or re-install of the OS into the latest version (such as from Ubuntu 16.x to 18.x), it is possible the version of cURL installed for PHP is a different one.  For example, running <em>php -m</em> reveals:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>PHP 7.2.34-8+ubuntu18.04.1+deb.sury.org+1 (cli) (built: Oct 31 2020 16:57:15) ( NTS )<br>Copyright (c) 1997-2018 The PHP Group<br>Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies<br>with Zend OPcache v7.2.34-8+ubuntu18.04.1+deb.sury.org+1, Copyright (c) 1999-2018, by Zend Technologies</p></blockquote>



<p>Since it is version 7.2 of PHP, install the cURL PHP library:  <em>apt-get install php7.2-curl</em></p>
<p>The post <a href="https://it.amid.com/2018/12/27/installing-elasticsearch-client-on-php/">Installing Elasticsearch Client on PHP</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2018/12/27/installing-elasticsearch-client-on-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Recovering Kibana After Upgrade</title>
		<link>https://it.amid.com/2018/12/12/recovering-kibana-after-upgrade/</link>
					<comments>https://it.amid.com/2018/12/12/recovering-kibana-after-upgrade/#respond</comments>
		
		<dc:creator><![CDATA[Rudy Amid]]></dc:creator>
		<pubDate>Wed, 12 Dec 2018 18:54:10 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[elasticsearch]]></category>
		<category><![CDATA[kibana]]></category>
		<category><![CDATA[recovery]]></category>
		<category><![CDATA[upgrade]]></category>
		<guid isPermaLink="false">https://it.amid.com/?p=463</guid>

					<description><![CDATA[<p>Elastic is doing rapid development with Elasticsearch. As of this writing, they&#8217;re now on version 6.5.3 &#8211; when 6.5.2 was released less than 2 weeks ago!  Luckily, with a package install from repo (such as RPM on CentOS/RHEL), the upgrade process to minor versions is less painful.  However, it&#8217;s not without its pitfall. For example, [&#8230;]</p>
<p>The post <a href="https://it.amid.com/2018/12/12/recovering-kibana-after-upgrade/">Recovering Kibana After Upgrade</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<div class="wp-block-image"><figure class="alignleft"><img loading="lazy" decoding="async" width="66" height="80" src="https://it.amid.com/wp-content/uploads/2018/12/Kibana-Color.png" alt="Kibana" class="wp-image-465"/></figure></div>



<p>Elastic is doing rapid development with Elasticsearch. As of this writing, they&#8217;re now on version 6.5.3 &#8211; when 6.5.2 was released less than 2 weeks ago!  Luckily, with a package install from repo (such as RPM on CentOS/RHEL), the upgrade process to minor versions is less painful.  However, it&#8217;s not without its pitfall. For example, an  upgrade from version 6.4.x to the latest 6.5.x could lead to Kibana not able to start due to incompatible indices.</p>



<p>In order to alleviate this, shutdown the Kibana service, and instruct Elasticsearch to perform a recovery on the <em>.kibana</em> index:</p>



<pre class="wp-block-code"><code>curl --user elasticuser:userpassword -s https://search.mydomain.net:9200/.kibana/_recovery?pretty</code></pre>



<p>If it&#8217;s connected to a big cluster with a lot of shards, speed up the recovery process without using replicas:</p>



<pre class="wp-block-code"><code>curl --user elasticuser:userpassword -H 'Content-Type: application/json' -XPUT 'https://search.mydomain.net:9200/.kibana/_settings' -d '{ "index" : { "number_of_replicas" : 0 } }'</code></pre>



<p>Give it a few minutes (depending how much data is there) and then start up Kibana service.  If, for some reason, it still takes a long time, there may be a problem with the migration process.  The <em>kibana.log</em> may indicate something like this:</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow"><p>{&#8220;type&#8221;:&#8221;log&#8221;,&#8221;@timestamp&#8221;:&#8221;2018-12-12T17:17:40Z&#8221;,&#8221;tags&#8221;:[&#8220;warning&#8221;,&#8221;stats-collection&#8221;],&#8221;pid&#8221;:15141,&#8221;message&#8221;:&#8221;Unable to fetch data from kibana_settings collector&#8221;}<br>{&#8220;type&#8221;:&#8221;log&#8221;,&#8221;@timestamp&#8221;:&#8221;2018-12-12T17:17:42Z&#8221;,&#8221;tags&#8221;:[&#8220;reporting&#8221;,&#8221;warning&#8221;],&#8221;pid&#8221;:15141,&#8221;message&#8221;:&#8221;Enabling the Chromium sandbox provides an additional layer of protection.&#8221;}<br>{&#8220;type&#8221;:&#8221;log&#8221;,&#8221;@timestamp&#8221;:&#8221;2018-12-12T17:17:42Z&#8221;,&#8221;tags&#8221;:[&#8220;info&#8221;,&#8221;migrations&#8221;],&#8221;pid&#8221;:15141,&#8221;message&#8221;:&#8221;Creating index .kibana_2.&#8221;}<br>{&#8220;type&#8221;:&#8221;log&#8221;,&#8221;@timestamp&#8221;:&#8221;2018-12-12T17:17:44Z&#8221;,&#8221;tags&#8221;:[&#8220;warning&#8221;,&#8221;migrations&#8221;],&#8221;pid&#8221;:15141,&#8221;message&#8221;:&#8221;Another Kibana instance appears to be migrating the index. Waiting for that migration to complete. If no other Kibana instance is attempting migrations, you can get past this message by deleting index .kibana_2 and restarting Kibana.&#8221;}</p></blockquote>



<p>Shutdown Kibana again, and delete the <em>.kibana_2</em> index:</p>



<pre class="wp-block-code"><code>curl --user elasticuser:userpassword -XDELETE https://search.mydomain.net:9200/.kibana_2</code></pre>



<p>Start the Kibana service again and give it a few more minutes to perform house-keeping.  Kibana should be up and running now.<br></p>
<p>The post <a href="https://it.amid.com/2018/12/12/recovering-kibana-after-upgrade/">Recovering Kibana After Upgrade</a> appeared first on <a href="https://it.amid.com">Building IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://it.amid.com/2018/12/12/recovering-kibana-after-upgrade/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
