Data Whimsy
  • Home
  • What is Matomo
  • Contact
  • Custom Reports
  • Connect Matomo to other software
  • CLI API etc
  • Matomo Tag Manager Simple Guide
  • Lyn Only
  • Troubleshooting + Deploying Matomo
  • Weird Data
  • Why is data in Matomo giving different numbers than Google Analytics
  • The Dashboard
  • Moving the Data
  • Book Club Forum

Without the dashboard

The top slot of your browser can send requests to Tracking API & Reporting API
The command line of your browser can accept direct Matomo input (e.g. the PHP ./console command).
On this page are a variety of things you can do without ever touching the visual dashboard (Matomo GUI)

Examples of SED, GREP, RegEx

5/24/2024

0 Comments

 
Cookbook of command line regex examples for sed and grep that worked for me.

1
$ sed -E s/[0-9][A-Za-z]/foooooooo/g  filename.txt

2
New line can be done by piping from sed -> tr
$ echo "123." | sed -E 's/([[:digit:]]*)\./\1|next line/' | tr '|' '\n'

3
Example with "any digit", capture group, and newline

$ echo "123z" | sed -E 's/([[:digit:]]*)z/\1\n next line/'

4
Within  a  bracket  expression, the name of a character class enclosed in "[:" and ":]" stands for the list of all characters belonging to that class.  Standard character class names are:

              alnum   digit   punct
              alpha   graph   space
              blank   lower   upper
              cntrl   print   xdigit

5
How to locate logs
sudo find / -name 'apache2' | grep log
sudo find / -name 'matomo' | grep log | sed /blog/d | sed /sql/d

How to find the fullness of the log
df -h {PATH.TO.LOG}
df -hi {PATH.TO.LOG}



0 Comments



Leave a Reply.

    Author

    Evan Genest

    Archives

    November 2024
    August 2024
    May 2024
    March 2024
    February 2024
    November 2023
    October 2023
    September 2023
    August 2023

    Categories

    All

Powered by Create your own unique website with customizable templates.
  • Home
  • What is Matomo
  • Contact
  • Custom Reports
  • Connect Matomo to other software
  • CLI API etc
  • Matomo Tag Manager Simple Guide
  • Lyn Only
  • Troubleshooting + Deploying Matomo
  • Weird Data
  • Why is data in Matomo giving different numbers than Google Analytics
  • The Dashboard
  • Moving the Data
  • Book Club Forum