Questions tagged [parsing]

46 questions
1
vote
1 answer

Update JSON Payload using Powershell and Nutanix API

I'm currently writing a script that allow to update Nutanix VM Categories. Categories format is key:value and a VM may have no categories, 1 or multiple. Process to do that is quite simple : first I create a request to get an existing VM…
motorbass
  • 303
  • 2
  • 12
0
votes
1 answer

Extracting responses from Microsoft DNS Server Analytical logs

Is it possible to extract the DNS responses from Microsoft DNS Server Analytical logs (Microsoft-Windows-DNS-Server/Analytical)? The logs contain a field called "PacketData" in the EventData section of the event, but so far I have unable to extract…
treiman
  • 43
  • 1
  • 1
  • 5
0
votes
0 answers

How to display traffic information in a parsable format?

tcpdump is my go-to tool to analyze traffic (together with Wireshark when I want an easier review of the pcap file). This fantastic tool fails however to deliver a predictable and easy to parse output format ("predictable" as in "same on all Linux…
WoJ
  • 3,607
  • 9
  • 49
  • 79
0
votes
1 answer

HAProxy errors in configuration file

I am trying to configure Pass through SSL using HAproxy but I get a lot of errors here my example error detected while parsing ACL frontend public_ssl mode tcp option tcplog bind *:443 tcp-request inspect-delay 5s …
cyeostoragrn
  • 19
  • 4
  • 11
0
votes
1 answer

How I can parse email to get original recipient of an email?

I had email source with me and want parse original recipient of email. Lets say "user1@example.com" is receiving a email, but in "To" list user1@example.com, user2@example.com & user3@example.com are mentioned. I want to get only user1 from email…
Pravin
  • 121
  • 2
0
votes
1 answer

Which log file can I use for server port analytics?

Ideally I'd like to use piwik to track conversions from ads to server connections on port 5000 and port 5001 but I highly doubt that is even possible. I'm willing to settle for [ipaddress,time connected, time disconnected] and I'm fairly positive I…
T. Thomas
  • 187
  • 6
0
votes
1 answer

How to remove string and replace with content found in text file using batch script or powershell

How to remove string and replace with content found in text file using batch script. test.txt Version: 4.5.0 Import: //MPackages/Project/config/abc.txt #head //Packages/Project/config/cde.txt …
tipu
  • 3
  • 2
0
votes
2 answers

Possible interface types that may show up in "ip addr show"?

Consider the output of a typical ip addr show on Linux: # ip addr show 1: lo: mtu 16436 qdisc noqueue link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host …
JCCyC
  • 680
  • 3
  • 13
  • 24
0
votes
1 answer

Parse requests per OS type apache log

I'm trying to return a sorted list of requests per OS type, parsed from an Apache access_log file (not combined format as I need the user-agent info). Here's an example of the output I'm looking for: 250 Windows NT 6.1; WOW64 200 X11; Linux…
Alex
  • 25
  • 7
0
votes
3 answers

Listing usernames that are actually computers in Debian

I have inherited about 6 servers (all Debian based), and part of my project over the next year is consolidate everything into one server. There are 6 "domains" running from Samba3 installations, and I'd like to merge them all into the one new server…
Canadian Luke
  • 885
  • 15
  • 44
0
votes
1 answer

Odd behavior of bash array

I've recently encountered a strange script behavior and still don't understand y the array behaves this way. Here is a piece of the script: for nCDATAReg in $(seq 1 4) do sTestBuffer1=$(grep -Pzoi '\/\/<\!\[CDATA\[[\s\S]*?\/\/\]\]>'…
0
votes
1 answer

Ansible having an unhandled exception occurred while templating with lookup function

I'm currently building a playbook to test if some conf files are existing and then check the contents. Files are the following /etc/resolv.conf - then check if nameservers are well configured /etc/systemd/timesyncd.conf - check if something has…
motorbass
  • 303
  • 2
  • 12
0
votes
2 answers

sed: -e expression #1, char 113: unknown command: `['

I was wondering why isn't this code working, it is simple but for some reason it's not working. WIREGUARD_TEMP_NEW_CLIENT_INFO="# ef37a62148810e97daa4deb88fa7f8add6532c39d2feb56d712a0ab1e8f5fd13ec52cfb1751ad3812e21f33a1e0508f14b7d…
0
votes
1 answer

OpenVPN server log - what is the "us=" identifier following the timestamp?

I use OpenVPN 2.3.10 in server mode, with logging set to verb 4. In the log, every line begins by a timestamp (Mon May 11 10:40:10 2020) and then us=, followed by a 5- or 6-digit number. What is this us identifier? Is it the microsecond (μs) part of…
zire
  • 23
  • 2
-1
votes
1 answer

how to set linux hostname based on flashdisk volume label

i'am running live linux, which run from FAT32 flashdisk since i run a lot of pc using this flashdisk, its difficult to identify which IP for its hostname, since its ip need to be dynamically determined by dhcp, so i want set their hostname by volume…
uray
  • 245
  • 4
  • 7