Re: [CentOS] CentOS 7 rsyslog and ELK

2020-07-10 Thread Earl Ramirez
> 
> What do people do to get their syslog messages on CentOS 7 into a
> remote ELK stack.  I've tried lots of things involving rsyslog,
> filebeat, redis, logstash and so on in lots of different
> configurations
> but nothing really works.

I did this a couple times, I will share the configs in couple of days. 


signature.asc
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 rsyslog and ELK

2020-07-10 Thread Pete Biggs
On Fri, 2020-07-10 at 16:44 -0400, Jason Edgecombe wrote:
> I don't use ELK at the moment, but is this helpful?
> 
> % journalctl -f --output=json
> 
> The above command prints the continuous output of the systemd journal in
> json format.
> 
Thanks. The problem is getting that into logstash.  But it's actually
quite useful anyway as it's another method of monitoring what is
supposed to be logged.

P.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 rsyslog and ELK

2020-07-10 Thread Pete Biggs

> > What do people do to get their syslog messages on CentOS 7 into a
> > remote ELK stack.  I've tried lots of things involving rsyslog,
> > filebeat, redis, logstash and so on in lots of different configurations
> > but nothing really works.
> > 
> > I can get rsyslog to talk directly to logstash (acting as a syslog
> > server) but the messages don't have facility or severity codes in them
> > which makes it considerably more difficult to manage the messages.
> > 
> 
> The section "b – Routing from rsyslog to Logstash" of the article
> seems to cover a filter that needs to be added. You may have already
> tried this.. but that is about all i can help with currently.
> 
Thanks.  Yes, I was trying to get rsyslog to send JSON to logstash and
I have tried that template. 

A bit more investigation though and it turns out that the firewall on
the logstash server was only letting through tcp packets and it needs
udp. Now I've fixed that, they appear to be talking to each other, but
it certainly doesn't seem to be logging everything.

Progress of sorts!

P.


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 rsyslog and ELK

2020-07-10 Thread Jason Edgecombe
I don't use ELK at the moment, but is this helpful?

% journalctl -f --output=json

The above command prints the continuous output of the systemd journal in
json format.

Jason


---
Jason Edgecombe | Linux Administrator
UNC Charlotte | Office of OneIT
9201 University City Blvd. | Charlotte, NC 28223-0001
Phone: 704-687-1943
jwedg...@uncc.edu | http://engr.uncc.edu |  Facebook
---
If you are not the intended recipient of this transmission or a person
responsible for delivering it to the intended recipient, any disclosure,
copying, distribution, or other use of any of the information in this
transmission is strictly prohibited. If you have received this transmission
in error, please notify me immediately by reply e-mail or by telephone at
704-687-1943.  Thank you.


On Fri, Jul 10, 2020 at 4:33 PM Pete Biggs  wrote:

> I asked a similar question about a year ago and didn't get any answers.
> So I thought I'd try again.
>
> What do people do to get their syslog messages on CentOS 7 into a
> remote ELK stack.  I've tried lots of things involving rsyslog,
> filebeat, redis, logstash and so on in lots of different configurations
> but nothing really works.
>
> I can get rsyslog to talk directly to logstash (acting as a syslog
> server) but the messages don't have facility or severity codes in them
> which makes it considerably more difficult to manage the messages.
>
> P.
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] CentOS 7 rsyslog and ELK

2020-07-10 Thread Stephen John Smoogen
On Fri, 10 Jul 2020 at 16:33, Pete Biggs  wrote:
>
> I asked a similar question about a year ago and didn't get any answers.
> So I thought I'd try again.
>

Honestly, as much as I have heard of people using Elastic Kibana..
they are usually using it for things already in JSON. WHen I looked in
the past I either found someone wanting me to set up a 20 node cluster
to monitor logs or someone sayin they had but nothing in it. I was
going to say I didn't know but decided to look again and I found this
article https://devconnected.com/monitoring-linux-logs-with-kibana-and-rsyslog/



> What do people do to get their syslog messages on CentOS 7 into a
> remote ELK stack.  I've tried lots of things involving rsyslog,
> filebeat, redis, logstash and so on in lots of different configurations
> but nothing really works.
>
> I can get rsyslog to talk directly to logstash (acting as a syslog
> server) but the messages don't have facility or severity codes in them
> which makes it considerably more difficult to manage the messages.
>

The section "b – Routing from rsyslog to Logstash" of the article
seems to cover a filter that needs to be added. You may have already
tried this.. but that is about all i can help with currently.

> P.
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos



-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] CentOS 7 rsyslog and ELK

2020-07-10 Thread Pete Biggs
I asked a similar question about a year ago and didn't get any answers.
So I thought I'd try again.

What do people do to get their syslog messages on CentOS 7 into a
remote ELK stack.  I've tried lots of things involving rsyslog,
filebeat, redis, logstash and so on in lots of different configurations
but nothing really works.

I can get rsyslog to talk directly to logstash (acting as a syslog
server) but the messages don't have facility or severity codes in them
which makes it considerably more difficult to manage the messages.

P.



___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hex editor for huge files

2020-07-10 Thread hexpeek

On 2020-07-10 10:10, Simon Matter via CentOS wrote:

Hi,

Thanks for the tool, I've created RPMs of it:

http://www.invoca.ch/pub/packages/hexpeek/

Regards,
Simon


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

You're welcome and thank you.
-BEGIN PGP SIGNATURE-

iQJIBAEBCgAyFiEEfeRsn/lRU2hTiGbecMFr/kefAX8FAl8IvnwUHGhleHBlZWtA
aGV4cGVlay5jb20ACgkQcMFr/kefAX+oaA/+Ny2yC2sGlsL/HM3T7g6OJkWv9aHu
6XE4Pcbil69w5k7yxX1Zvo0Aeh17doWyB14Qh3Ubutrr2ut/QdcgiqDMXo/Kr6g3
nq2rvov9ZU/KtYE/wtviWvhS7pFlSW2okv2sDdfMgdlLksiSpt2qeo0ONat0Pcv/
ARpHDT/nfiWFJetCZSXZI2mi7fXLBMYzR9uj97dq0eQMBWbUEAAaIVnlwVeysoTP
fQuItt+TJNt3PDmer0dZU86e7kaYjfkmGBRoRohSj2z/7jWXbt3HQ+LN+zleixdL
kssmbDaJdBfxjUS7L5L9YQTAdR9S3Mx9adKVd39CbWctdc1z0IaCRCYhpJWBPgiD
gJJ5h51Xmfu5bBj1cioSM/CfyoaRofDyHFxyhRSDuV/VAWsKQf8FYKD8145NwHxO
W60ptYXvMsVEqw1d0dRm39AfPNRyYG858xzo4NnlxtgpTJv3lgHrO/2BVn8bsKCq
IcYhUJ/voBA7YtD+ilThzy8CXPJQhZh2jg2QO/dechsXEs0PxO0/LSLGqX1/gx7u
8EjvOCksP67XJovuf5F4NcvUMawunHW50upl2vNkaAD7ed8uJ/cu4aq9NI3XgHxa
ySy38PzQUbNTWbQm0xzpTq5qj4fm53jDMZ6neXl9PMOy/QWyIrrTtZ0BZ+EYgmbo
sGNY7N9SYimoUpk=
=W1Ob
-END PGP SIGNATURE-
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] For those interested in GCP (might be advertisement)

2020-07-10 Thread Victor Padro
Thank you!

On Fri, Jul 10, 2020 at 4:44 AM Thomas Stephen Lee 
wrote:

>
> https://www.udemy.com/course/google-certified-associate-cloud-engineer-2019-prep-course/?couponCode=3F77D261A390D06DE18C
>
> --
> Lee
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
"Everything that irritates us about others can lead us to an understanding
of ourselves"
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] complex migration

2020-07-10 Thread Christopher Wensink
I had the same thought, and the base vmware guest that I created was 64
bit, so I went back and created a 32 bit version, and attached the
external hard drive, that didn't seem to make a difference, I was also
booting off of an x86_64 rescue CD so perhaps that is a factor as well. 
I was able to make some progress with yum distribution-synchronization
--skip-broken and since then I've been able to install some packages
specifying the .i686 at the end of the listings.

For whatever reason many packages when processing dependencies are
defaulting to the x86_64 version, so I have to go back and manually
install each dependency

after that completed I was about to install grub, but when trying to
install a kernel I still have a lot of processed dependencies.

How do I check if bowser knows what boot partition it should use?

So far I was able to make some
On 7/10/2020 10:40 AM, Mauricio Tavares wrote:
> On Fri, Jul 10, 2020 at 11:04 AM Christopher Wensink
>  wrote:
>> Hello Everyone,
>>
>> I need to do a complex migration of either a guest VM as a whole or as
>> individual files with a dump and load of a progress database-based ERP
>> system.
>>
>> The old host is an Amd Opteron 8 Core 16 GB ram single Socket CPU with a
>> RAID 10 array of 8x 500 GB SATA Disks.  It is running Centos 6.10 as a
>> base OS using OpenVZ as the VM technology.  Kernel version is
>> 2.6.32-042stab142.1 x86_64
>>
>> The VM "bowser" is running CentOS 6.8, it's allocated all 8 Cores, 4 GB
>> of ram, and 120 GB of thick provisioned space.  This VM is running
>> kernel 2.6.32-042stab142.1 i686/i386 - 32 bit OS.
>>
>> The new host has Dual Xeon Silver CPU's 256 GB ram, and a RAID 6 setup
>> w/ 13.96 TB of total available storage of SSD drives.
>>
>> I've followed the instructions here:
>>
>> https://communities.vmware.com/message/1719787#1719787
>>
>> and here:
>> http://gurutek.biz/migrating-from-proxmoxopenvz-to-esxesxivmware-server-part-1/
>>
>> I am at the point where I have a .vmdk file created, and I've imported
>> the machine into vmware, but the machine is not booting.  The bios
>> vmware simply says no operating system found.  I can boot from a rescue
>> disk, then mount the old hard drive, and I can see files  from the old
>> VM.  I was able to chroot into the filesystem of the old system, and I
>> was able to get the network card communicating and online.
>>
>> After chrooting into the base of the old filesystem, when I try to use
>> yum to install a kernel and run yum updates, I have an issue where the
>> system is trying to install the i686 and x86_64 versions of RPM's that
>> conflict with each other , and they don't work because of cross
>> dependencies.
>>
>> librt.so.1 is needed by (installed) libdrm-2.4.65-2.el6.i686,
>> and many packages repeat for
>> librt.so.1, libutil.so.1, libgmp.so.3, libgmpxx.so.4, liblber-2.4.so.2,
>> libacl.so.1
>>
>> I've tried the suggestion of running rpm -Va --nofiles --nodigest, which
>> completes but does not fix the files.
>>
>> Has anyone run into this i686 / x86_64 dual package conflicting issue
>> before?  Any suggestions?
>>
>   Correct me if I am wrong but you moved this bowser vm from
> openvz to vmware. If so, how about if you start by going to the vmware
> console and checking the configuration for bowser? Maybe it by default
> set it to be a 64bit CPU instead of 32bit.
>
> Once you have that, if your problems are still happening I would
> suggest checking if bowser knows which boot partition it should use.
>
>> Christopher Wensink
>> IS Administrator
>> Five Star Plastics, Inc
>> 1339 Continental Drive
>> Eau Claire, WI 54701
>> Office:  715-831-1682
>> Mobile:  715-563-3112
>> Fax:  715-831-6075
>> cwens...@five-star-plastics.com
>> www.five-star-plastics.com
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos

-- 
Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive 
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] complex migration

2020-07-10 Thread Mauricio Tavares
On Fri, Jul 10, 2020 at 11:04 AM Christopher Wensink
 wrote:
>
> Hello Everyone,
>
> I need to do a complex migration of either a guest VM as a whole or as
> individual files with a dump and load of a progress database-based ERP
> system.
>
> The old host is an Amd Opteron 8 Core 16 GB ram single Socket CPU with a
> RAID 10 array of 8x 500 GB SATA Disks.  It is running Centos 6.10 as a
> base OS using OpenVZ as the VM technology.  Kernel version is
> 2.6.32-042stab142.1 x86_64
>
> The VM "bowser" is running CentOS 6.8, it's allocated all 8 Cores, 4 GB
> of ram, and 120 GB of thick provisioned space.  This VM is running
> kernel 2.6.32-042stab142.1 i686/i386 - 32 bit OS.
>
> The new host has Dual Xeon Silver CPU's 256 GB ram, and a RAID 6 setup
> w/ 13.96 TB of total available storage of SSD drives.
>
> I've followed the instructions here:
>
> https://communities.vmware.com/message/1719787#1719787
>
> and here:
> http://gurutek.biz/migrating-from-proxmoxopenvz-to-esxesxivmware-server-part-1/
>
> I am at the point where I have a .vmdk file created, and I've imported
> the machine into vmware, but the machine is not booting.  The bios
> vmware simply says no operating system found.  I can boot from a rescue
> disk, then mount the old hard drive, and I can see files  from the old
> VM.  I was able to chroot into the filesystem of the old system, and I
> was able to get the network card communicating and online.
>
> After chrooting into the base of the old filesystem, when I try to use
> yum to install a kernel and run yum updates, I have an issue where the
> system is trying to install the i686 and x86_64 versions of RPM's that
> conflict with each other , and they don't work because of cross
> dependencies.
>
> librt.so.1 is needed by (installed) libdrm-2.4.65-2.el6.i686,
> and many packages repeat for
> librt.so.1, libutil.so.1, libgmp.so.3, libgmpxx.so.4, liblber-2.4.so.2,
> libacl.so.1
>
> I've tried the suggestion of running rpm -Va --nofiles --nodigest, which
> completes but does not fix the files.
>
> Has anyone run into this i686 / x86_64 dual package conflicting issue
> before?  Any suggestions?
>
  Correct me if I am wrong but you moved this bowser vm from
openvz to vmware. If so, how about if you start by going to the vmware
console and checking the configuration for bowser? Maybe it by default
set it to be a 64bit CPU instead of 32bit.

Once you have that, if your problems are still happening I would
suggest checking if bowser knows which boot partition it should use.

> Christopher Wensink
> IS Administrator
> Five Star Plastics, Inc
> 1339 Continental Drive
> Eau Claire, WI 54701
> Office:  715-831-1682
> Mobile:  715-563-3112
> Fax:  715-831-6075
> cwens...@five-star-plastics.com
> www.five-star-plastics.com
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] force CUPS print server to fit-to-page

2020-07-10 Thread Josh
On Thu, Jul 9, 2020 at 3:18 PM Frank Cox wrote:

> On Thu, 9 Jul 2020 13:00:19 -0400
> Josh wrote:
>
> > Does anyone have any ideas?
>
> Did you set /etc/papersize?
>

Initially I did not, because based on

man  paperconf

the default paper size is letter.
Still, after running

sudo paperconfig -p letter

which created /etc/papersize and restarting cups there are no changes.

Josh.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] complex migration

2020-07-10 Thread Christopher Wensink
Hello Everyone,

I need to do a complex migration of either a guest VM as a whole or as
individual files with a dump and load of a progress database-based ERP
system.

The old host is an Amd Opteron 8 Core 16 GB ram single Socket CPU with a
RAID 10 array of 8x 500 GB SATA Disks.  It is running Centos 6.10 as a
base OS using OpenVZ as the VM technology.  Kernel version is
2.6.32-042stab142.1 x86_64

The VM "bowser" is running CentOS 6.8, it's allocated all 8 Cores, 4 GB
of ram, and 120 GB of thick provisioned space.  This VM is running
kernel 2.6.32-042stab142.1 i686/i386 - 32 bit OS.

The new host has Dual Xeon Silver CPU's 256 GB ram, and a RAID 6 setup
w/ 13.96 TB of total available storage of SSD drives.

I've followed the instructions here:

https://communities.vmware.com/message/1719787#1719787

and here:
http://gurutek.biz/migrating-from-proxmoxopenvz-to-esxesxivmware-server-part-1/

I am at the point where I have a .vmdk file created, and I've imported
the machine into vmware, but the machine is not booting.  The bios
vmware simply says no operating system found.  I can boot from a rescue
disk, then mount the old hard drive, and I can see files  from the old
VM.  I was able to chroot into the filesystem of the old system, and I
was able to get the network card communicating and online. 

After chrooting into the base of the old filesystem, when I try to use
yum to install a kernel and run yum updates, I have an issue where the
system is trying to install the i686 and x86_64 versions of RPM's that
conflict with each other , and they don't work because of cross
dependencies.

librt.so.1 is needed by (installed) libdrm-2.4.65-2.el6.i686,
and many packages repeat for
librt.so.1, libutil.so.1, libgmp.so.3, libgmpxx.so.4, liblber-2.4.so.2,
libacl.so.1

I've tried the suggestion of running rpm -Va --nofiles --nodigest, which
completes but does not fix the files.

Has anyone run into this i686 / x86_64 dual package conflicting issue
before?  Any suggestions?

Christopher Wensink
IS Administrator
Five Star Plastics, Inc
1339 Continental Drive 
Eau Claire, WI 54701
Office:  715-831-1682
Mobile:  715-563-3112
Fax:  715-831-6075
cwens...@five-star-plastics.com
www.five-star-plastics.com

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] hex editor for huge files

2020-07-10 Thread Simon Matter via CentOS
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
> hexpeek: a hex editor for huge files
>
> Occasionally I need to work with huge binary files. Over the years I've
> tried many different tools and never found one that was exactly what I
> wanted. In my experience most hex editors either (1) do not work well
> with 4GB+ files or (2) require the user to learn a curses interface and
> are not scriptable.

Hi,

Thanks for the tool, I've created RPMs of it:

http://www.invoca.ch/pub/packages/hexpeek/

Regards,
Simon

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Availability of CentOS 7/8 AMIs through AWS Marketplace

2020-07-10 Thread Marc Jay
Hi there,

Long-time user of CentOS 7 AMIs from the AWS Marketplace. I see that the
latest CentOS 7 and all CentOS 8 AMIs are only available outside of the
Marketplace ("These images are published outside of the AWS Market Place
and are shared directly" - https://wiki.centos.org/Cloud/AWS)

I'm really keen to understand if this is short-term situation, or if this
is the indefinite future of CentOS AMI releases? There were a number of
benefits to the Marketplace model - mainly for us is the ability to use
Packer to fetch the latest AMI for the product code, plus also
notifications. Are there reasons behind the recent change?

Many thanks,

Marc
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] For those interested in GCP (might be advertisement)

2020-07-10 Thread Thomas Stephen Lee
https://www.udemy.com/course/google-certified-associate-cloud-engineer-2019-prep-course/?couponCode=3F77D261A390D06DE18C

--
Lee
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] X11 issue on CentOS 8

2020-07-10 Thread Gianluca Cecchi
On Fri, Jul 10, 2020 at 2:48 AM Jerry Geis  wrote:

> So what I thought was happening is not. Files are being read.
>
> The issue is /var/log/messages shows the 3840x2160 resolution - but when I
> goto the Settings->Display the highest resolution is 1920x1080.
>
>
I think you should find more information inside /var/log/Xorg.0.log.
What does it print about 3840x2160 modes? The same as in messages or
something like "Not using mode"?
BTW: what is the video card you are using and the corresponding driver?
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos