<?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>Patrick, Auteur à CYBERDEV s.p.r.l.</title>
	<atom:link href="https://cyberdev.be/new/en/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>https://cyberdev.be/new/en/author/admin/</link>
	<description></description>
	<lastBuildDate>Sat, 13 Mar 2021 15:29:01 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Post an event to Graylog via powershell</title>
		<link>https://cyberdev.be/new/en/publish-via-powershell-a-event-vers-docker/</link>
		
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Wed, 10 Mar 2021 15:51:24 +0000</pubDate>
				<category><![CDATA[DEVOPS]]></category>
		<category><![CDATA[Docker]]></category>
		<category><![CDATA[Logging]]></category>
		<category><![CDATA[Powershell]]></category>
		<guid isPermaLink="false">https://cyberdev.be/new/?p=299</guid>

					<description><![CDATA[<p>GraylogMessage class -[string] $short-message;[string] $full-message '$Uri' http://192.168.1.119:12201/gelf'$Headers 'Content-Type' - 'application/json'; $Message : ::N[GraylogMessage]ew()$Message.short-message - 'Robocopy EMV VIX Pulse'$Message.full-message :::[IO.File]ReadAllText ('C:-logs-robocopylogs.txt') Invoke-WebRequest -Uri $Uri -Method POST -Headers $Headers -Body (ConvertTo-Json $Message) [&#8230;]</p>
<p>Cet article <a href="https://cyberdev.be/new/en/publish-via-powershell-a-event-vers-docker/">Post an event to Graylog via powershell</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p></p>



<p><code>GraylogMessage class -[string] $short-message;[string]  $full-message <br>'$Uri' http://192.168.1.119:12201/gelf'<br>$Headers 'Content-Type' - 'application/json'; $Me<br>ssage : ::N[GraylogMessage]ew()$Me<br>ssage.short-message - 'Robocopy EMV VIX Pulse'$<br>Message.full-message :::[IO.File]ReadAllText ('C:-logs-robocopylogs.txt')</code></p>



<p><code>Invoke-WebRequest -Uri $Uri -Method POST -Headers $Headers -Body (ConvertTo-Json $Message)</code></p>



<p>Unfortunately, it remains blocked as the line invoke-webrequest.</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-10-16_49_55-Clipboard.png"><img fetchpriority="high" decoding="async" width="644" height="188" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-10-16_49_55-Clipboard.png" alt="" class="wp-image-300" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-10-16_49_55-Clipboard.png 644w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-10-16_49_55-Clipboard-300x88.png 300w" sizes="(max-width: 644px) 100vw, 644px" /></a></figure>



<p>I&#8217;ll complete it when I get the answer&#8230;</p>
<p>Cet article <a href="https://cyberdev.be/new/en/publish-via-powershell-a-event-vers-docker/">Post an event to Graylog via powershell</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Disk use with docker too high?</title>
		<link>https://cyberdev.be/new/en/use-of-disc-with-docker-too-high/</link>
		
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Fri, 05 Mar 2021 21:22:01 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://cyberdev.be/new/?p=290</guid>

					<description><![CDATA[<p>I find it more and more difficult to run my containers, after a few minutes or as soon as I launched all or part of my containers, he is not [&#8230;]</p>
<p>Cet article <a href="https://cyberdev.be/new/en/use-of-disc-with-docker-too-high/">Disk use with docker too high?</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>I find it more and more difficult to run my containers, after a few minutes or as soon as I launched all or part of my containers, he is not happy:</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-14_43_14-Window.png"><img decoding="async" width="802" height="628" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-14_43_14-Window.png" alt="" class="wp-image-291" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-14_43_14-Window.png 802w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-14_43_14-Window-300x235.png 300w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-14_43_14-Window-768x601.png 768w" sizes="(max-width: 802px) 100vw, 802px" /></a></figure>



<p>I thought maybe there was a lack of memory, so I increased: </p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_50-Window.png"><img decoding="async" width="826" height="577" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_50-Window.png" alt="" class="wp-image-292" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_50-Window.png 826w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_50-Window-300x210.png 300w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_50-Window-768x536.png 768w" sizes="(max-width: 826px) 100vw, 826px" /></a></figure>



<p>and then he felt better</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_32-Window.png"><img loading="lazy" decoding="async" width="735" height="406" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_32-Window.png" alt="" class="wp-image-293" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_32-Window.png 735w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-05-15_49_32-Window-300x166.png 300w" sizes="auto, (max-width: 735px) 100vw, 735px" /></a></figure>
<p>Cet article <a href="https://cyberdev.be/new/en/use-of-disc-with-docker-too-high/">Disk use with docker too high?</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Graylog and event viewer of windows</title>
		<link>https://cyberdev.be/new/en/graylog-and-event-viewer-of-windows/</link>
		
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Fri, 05 Mar 2021 21:18:18 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://cyberdev.be/new/?p=288</guid>

					<description><![CDATA[<p>Well, now that I have a nice service that centralizes my logs, I might as well add windows event viewer: Download and install this on servers that need to return [&#8230;]</p>
<p>Cet article <a href="https://cyberdev.be/new/en/graylog-and-event-viewer-of-windows/">Graylog and event viewer of windows</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Well, now that I have a nice service that centralizes my logs, I might as well add windows event viewer: </p>



<p>Download and install this on servers that need to return their logs: https://nxlog.co/system/files/products/files/348/nxlog-ce-2.10.2150.msi</p>



<p>Add a little confirguration:C:Program Files (x86)nxlog-confxlog.conf</p>



<pre class="wp-block-code"><code>&lt;Extension gelf=&quot;&quot;>xm_gelf module&lt;/Extension>

&lt;Input win>im_msvistalog module
	Query &lt;QueryList>&lt;Query id=&quot;0&quot;>&lt;Select path=&quot;Application&quot;>*&lt;/Select>&lt;/Query>&lt;/QueryList>Exec $Hostname - hostname();

&lt;Input in_sys>im_msvistalog module
Query &lt;QueryList>&lt;Query id=&quot;0&quot;>&lt;Select path=&quot;System&quot;>*&lt;/Select>&lt;/Query>&lt;/QueryList>Exec $Hostname - hostname();


&lt;Output graylog=&quot;&quot;>
om_tcp module
Host 192.168.1.119
Port 12201
OutputType GELF_TCP
&lt;/Output>

&lt;Route graylog_route=&quot;&quot;>
Path win > graylog
&lt;/Route>

&lt;Route graylog_route=&quot;&quot;>
Path in_sys > graylog
&lt;/Route></code></pre>



<p>It gives me an error message at the beginning: &quot;WARNING Due to a limitation in the Windows EventLog subsystem, a query cannot contain more than 256 sources.&quot; that&#39;s why I had to add the </p>



<pre class="wp-block-code"><code>&lt;QueryList>&lt;Query id=&quot;0&quot;>&lt;Select path=&quot;Application&quot;>*&lt;/Select>&lt;/Query>&lt;/QueryList></code></pre>



<p>(thanks to https://nxlog.co/question/4644/nxlog-service-keep-stopping-every-few-days) </p>
<p>Cet article <a href="https://cyberdev.be/new/en/graylog-and-event-viewer-of-windows/">Graylog and event viewer of windows</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Graylog in docker and c #</title>
		<link>https://cyberdev.be/new/en/graylog-in-docker-et-c/</link>
		
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Tue, 02 Mar 2021 19:26:13 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://cyberdev.be/new/?p=275</guid>

					<description><![CDATA[<p>Today I recreated a docker container with graylog: docker run --name mongo -d mongo:4.2 docker run --name elasticsearch -e &#34;http.host-0.0.0.0&#34; -e &#34;discovery.type-single-node&#34; -e &#34;ES_JAVA_OPTS-Xms512m -Xmx512m&#34; -d docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2 docker run --name [&#8230;]</p>
<p>Cet article <a href="https://cyberdev.be/new/en/graylog-in-docker-et-c/">Graylog in docker and c #</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today I recreated a docker container with graylog:</p>



<p><code>docker run --name mongo -d mongo:4.2</code></p>



<p><code>docker run --name elasticsearch -e &quot;http.host-0.0.0.0&quot; -e &quot;discovery.type-single-node&quot; -e &quot;ES_JAVA_OPTS-Xms512m -Xmx512m&quot; -d docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2</code></p>



<p><code>docker run --name graylog4 --link mongo --link elasticsearch -p 9000:9000 -p 12201:12201 -p 1514:1514 -e GRAYLOG_HTTP_EXTERNAL_URI&quot;http://192.168.1.119:9000/&quot; -d graylog/graylog:4.0</code></p>



<p>I added an input</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_22_30-Window.png"><img loading="lazy" decoding="async" width="712" height="221" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_22_30-Window.png" alt="" class="wp-image-280" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_22_30-Window.png 712w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_22_30-Window-300x93.png 300w" sizes="auto, (max-width: 712px) 100vw, 712px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_23_26-Window.png"><img loading="lazy" decoding="async" width="1010" height="579" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_23_26-Window.png" alt="" class="wp-image-281" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_23_26-Window.png 1010w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_23_26-Window-300x172.png 300w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_23_26-Window-768x440.png 768w" sizes="auto, (max-width: 1010px) 100vw, 1010px" /></a></figure>



<p>Then I created a C-app with visual studio, added some nuggets</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_15-Laptop-dell-17-pouces.png"><img loading="lazy" decoding="async" width="600" height="71" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_15-Laptop-dell-17-pouces.png" alt="" class="wp-image-276" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_15-Laptop-dell-17-pouces.png 600w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_15-Laptop-dell-17-pouces-300x36.png 300w" sizes="auto, (max-width: 600px) 100vw, 600px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_31-Laptop-dell-17-pouces.png"><img loading="lazy" decoding="async" width="582" height="76" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_31-Laptop-dell-17-pouces.png" alt="" class="wp-image-277" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_31-Laptop-dell-17-pouces.png 582w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_31-Laptop-dell-17-pouces-300x39.png 300w" sizes="auto, (max-width: 582px) 100vw, 582px" /></a></figure>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_59-Laptop-dell-17-pouces.png"><img loading="lazy" decoding="async" width="591" height="245" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_59-Laptop-dell-17-pouces.png" alt="" class="wp-image-278" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_59-Laptop-dell-17-pouces.png 591w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_17_59-Laptop-dell-17-pouces-300x124.png 300w" sizes="auto, (max-width: 591px) 100vw, 591px" /></a></figure>



<p>A little bit of code: </p>



<p></p>



<pre class="wp-block-code"><code>private void button3_Click (object sender, EventArgs e)
{
var configuration - new Microsoft.Extensions.Configuration.ConfigurationBuilder ()
.AddJsonFile (&quot;appsettings.json&quot;)
.Build();        
Logger logger - new Serilog.LoggerConfiguration
                        .ReadFrom.Configuration (configuration)
            .CreateLogger();

while (true)
        {
            var line - &quot;cuckoo&quot;;

Logger.Warning (&quot;some warning: &#39;test&#39;), line);
            Logger.Information (&quot;some warning: &#39;test&#39;), line);
        }
    }</code></pre>



<p>And lo and behold, I added my first information in graylog</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_21_23-Window.png"><img loading="lazy" decoding="async" width="1024" height="550" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_21_23-Window-1024x550.png" alt="" class="wp-image-279" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_21_23-Window-1024x550.png 1024w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_21_23-Window-300x161.png 300w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_21_23-Window-768x413.png 768w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_21_23-Window.png 1394w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>Not to mention the appsettings.json file</p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_28_54-Clipboard.png"><img loading="lazy" decoding="async" width="581" height="417" src="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_28_54-Clipboard.png" alt="" class="wp-image-284" srcset="https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_28_54-Clipboard.png 581w, https://cyberdev.be/new/wp-content/uploads/2021/03/2021-03-02-20_28_54-Clipboard-300x215.png 300w" sizes="auto, (max-width: 581px) 100vw, 581px" /></a></figure>
<p>Cet article <a href="https://cyberdev.be/new/en/graylog-in-docker-et-c/">Graylog in docker and c #</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Migration of a webservice .net code 2.2 in 3.1</title>
		<link>https://cyberdev.be/new/en/migration-dun-webservice-net-code-2-2-in-3-1/</link>
		
		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Fri, 26 Feb 2021 17:46:42 +0000</pubDate>
				<category><![CDATA[Non classé]]></category>
		<guid isPermaLink="false">https://cyberdev.be/new/?p=259</guid>

					<description><![CDATA[<p>Today, we have merged two projects, one in .net core 2.2, the other in 3.1. At the first launch, we got the information that Microsoft.AspNetCore.Razor.Design 2.2 was not compatible in [&#8230;]</p>
<p>Cet article <a href="https://cyberdev.be/new/en/migration-dun-webservice-net-code-2-2-in-3-1/">Migration of a webservice .net code 2.2 in 3.1</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today, we have merged two projects, one in .net core 2.2, the other in 3.1.</p>



<p>At the first launch, we got the information that Microsoft.AspNetCore.Razor.Design 2.2 was not compatible in .net core 3.1. </p>



<p>A forum told us that this bookstore was now integrated with .net core 3.1 and that it was enough to remove it from the project with the help of the nugget manager.</p>



<p></p>



<p>During the 2nd launch, we were able to launch the application, but on the first call of a method: boom: </p>



<figure class="wp-block-image size-large"><a href="https://cyberdev.be/new/wp-content/uploads/2021/02/2021-02-26-18_44_24-Window.png"><img loading="lazy" decoding="async" width="903" height="442" src="https://cyberdev.be/new/wp-content/uploads/2021/02/2021-02-26-18_44_24-Window.png" alt="" class="wp-image-260" srcset="https://cyberdev.be/new/wp-content/uploads/2021/02/2021-02-26-18_44_24-Window.png 903w, https://cyberdev.be/new/wp-content/uploads/2021/02/2021-02-26-18_44_24-Window-300x147.png 300w, https://cyberdev.be/new/wp-content/uploads/2021/02/2021-02-26-18_44_24-Window-768x376.png 768w" sizes="auto, (max-width: 903px) 100vw, 903px" /></a></figure>



<p>We then added in Startu<code>p.cs > C</code>onfigureServices method:</p>



<pre class="wp-block-preformatted">Services.AddMvc (option > option.EnableEndpointRouting - false)</pre>



<p>And now the webservice is usable.</p>



<p>Thanks to https://stackoverflow.com/questions/57684093/using-usemvc-to-configure-mvc-is-not-supported-while-using-endpoint-routing</p>
<p>Cet article <a href="https://cyberdev.be/new/en/migration-dun-webservice-net-code-2-2-in-3-1/">Migration of a webservice .net code 2.2 in 3.1</a> est apparu en premier sur <a href="https://cyberdev.be/new/en">CYBERDEV s.p.r.l.</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
