SlideShare a Scribd company logo
1 of 15
Audit: data extractors, data generators and
          integration with Syslog


                            Ivá Arroyo
                               n
                         Alfresco Developer
What is the alfresco Audit?
Data Producers

What is a data producer?
Data Producers

PathMapping
• The data generate by “data producers” are passing to application
  through the path mappings

Application
• An application define how data is mapped, extracted, and recorded
  without affecting data required by other applications
Audit Component
Data extractors and data generators

Data Generator
• A DataGenerator is a component that produces data without any input i.e. data is
  produced when a data path is active, but is independent of the values at that
  path.



 Data Extractor
• A DataExtractor is a component that uses input data to produce some output,
  either transforming the data or merely outputting the data verbatim
AuditQuery
Consult each audit application component by a
customizable query
Normal query (all results)
•curl -u <admin user>:<password>
"http://<hostname>:<port>/alfresco/service/api/audit/query/<application name>?
verbose=true

Optional parameters

•forward (true|false), sorted upward (true)/ downward (false) by date time
•limit (true|false), limit the number of results.
•toId, return the results until id specified
•value, the value to filter
•fromTime/toTime, returns the result by the time interval specified (millisecond)
Unifying all of the above in an example
Modify the output of audited messages


• Why?

• Advantages and disadvantages
What is Syslog?
Syslog configuration


• Configuration file: /etc/syslog.conf


  1.Facilities

  2.Log File
Log4j: syslog appender and additivity

    log4j.properties (appender)
    log4j.appender.syslog=org.apache.log4j.net.SyslogAppender
    log4j.appender.syslog.syslogHost=localhost
    log4j.appender.syslog.layout=org.apache.log4j.PatternLayout
    log4j.appender.syslog.layout.conversionPattern=%m%n
    log4j.appender.syslog.Facility=local4

     log4j.properties (additivity)
     log4j.logger.org.alfresco.audit.LogAuditImpl=INFO,syslog
     log4j.additivity.org.alfresco.audit.LogAuditImpl = false
Logrotate: master you log files


• What is?

• How works?
Demo
Thank You!


             @ivanscn

More Related Content

What's hot

Complete Portfolio
Complete PortfolioComplete Portfolio
Complete Portfolio
Lorant Ipacs
 

What's hot (17)

ANALYZER_whole
ANALYZER_wholeANALYZER_whole
ANALYZER_whole
 
SFScon18 - Kurt Ranalter - Leonhard Holzer - API level regression testing: a ...
SFScon18 - Kurt Ranalter - Leonhard Holzer - API level regression testing: a ...SFScon18 - Kurt Ranalter - Leonhard Holzer - API level regression testing: a ...
SFScon18 - Kurt Ranalter - Leonhard Holzer - API level regression testing: a ...
 
Gaps in the Serverless Mesh: Deployment, Discovery, and Auth
Gaps in the Serverless Mesh: Deployment, Discovery, and AuthGaps in the Serverless Mesh: Deployment, Discovery, and Auth
Gaps in the Serverless Mesh: Deployment, Discovery, and Auth
 
LeanIX GraphQL Lessons Learned - CodeTalks 2017
LeanIX GraphQL Lessons Learned - CodeTalks 2017LeanIX GraphQL Lessons Learned - CodeTalks 2017
LeanIX GraphQL Lessons Learned - CodeTalks 2017
 
ITMAGINATION Data Science Summit 2019 Shiny Dashboards
ITMAGINATION Data Science Summit 2019 Shiny DashboardsITMAGINATION Data Science Summit 2019 Shiny Dashboards
ITMAGINATION Data Science Summit 2019 Shiny Dashboards
 
Complete Portfolio
Complete PortfolioComplete Portfolio
Complete Portfolio
 
DSD-INT 2020 Web based online Forecast Verification Tool - Zijderveld
DSD-INT 2020 Web based online Forecast Verification Tool - ZijderveldDSD-INT 2020 Web based online Forecast Verification Tool - Zijderveld
DSD-INT 2020 Web based online Forecast Verification Tool - Zijderveld
 
Bringing a public GraphQL API from beta to production ready
Bringing a public GraphQL API from beta to production readyBringing a public GraphQL API from beta to production ready
Bringing a public GraphQL API from beta to production ready
 
Dynamic filtering for presto join optimisation
Dynamic filtering for presto join optimisationDynamic filtering for presto join optimisation
Dynamic filtering for presto join optimisation
 
Bringing a public GraphQL API from the whiteboard to production
Bringing a public GraphQL API from the whiteboard to productionBringing a public GraphQL API from the whiteboard to production
Bringing a public GraphQL API from the whiteboard to production
 
Data2Ontology
Data2OntologyData2Ontology
Data2Ontology
 
Highlights of the Projects
Highlights of the ProjectsHighlights of the Projects
Highlights of the Projects
 
Petabytes of Data and No Servers: Corteva Scales DNA Analysis to Meet Increas...
Petabytes of Data and No Servers: Corteva Scales DNA Analysis to Meet Increas...Petabytes of Data and No Servers: Corteva Scales DNA Analysis to Meet Increas...
Petabytes of Data and No Servers: Corteva Scales DNA Analysis to Meet Increas...
 
Alter igit-cmbit midih-presentation oc2
Alter   igit-cmbit midih-presentation oc2Alter   igit-cmbit midih-presentation oc2
Alter igit-cmbit midih-presentation oc2
 
Automation test
Automation testAutomation test
Automation test
 
Fifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshopFifth elephant 2017 Data Pipeline workshop
Fifth elephant 2017 Data Pipeline workshop
 
qLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test AutomationqLabs How To Get Maximum RoI Using Test Automation
qLabs How To Get Maximum RoI Using Test Automation
 

Similar to Audit and syslog lightning talk

Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
Bhojan Rajan
 
How to Automate your Enterprise Application / ERP Testing
How to Automate your  Enterprise Application / ERP TestingHow to Automate your  Enterprise Application / ERP Testing
How to Automate your Enterprise Application / ERP Testing
RTTS
 

Similar to Audit and syslog lightning talk (20)

(ATS6-APP01) Unleashing the Power of Your Data with Discoverant
(ATS6-APP01) Unleashing the Power of Your Data with Discoverant(ATS6-APP01) Unleashing the Power of Your Data with Discoverant
(ATS6-APP01) Unleashing the Power of Your Data with Discoverant
 
Deep-Dive to Application Insights
Deep-Dive to Application Insights Deep-Dive to Application Insights
Deep-Dive to Application Insights
 
Overview PowerPlatform PowerApss
Overview PowerPlatform PowerApssOverview PowerPlatform PowerApss
Overview PowerPlatform PowerApss
 
Avanttic tech dates - de la monitorización a la 'observabilidad'
Avanttic tech dates - de la monitorización a la 'observabilidad'Avanttic tech dates - de la monitorización a la 'observabilidad'
Avanttic tech dates - de la monitorización a la 'observabilidad'
 
Visual Studio Profiler
Visual Studio ProfilerVisual Studio Profiler
Visual Studio Profiler
 
Feature drift monitoring as a service for machine learning models at scale
Feature drift monitoring as a service for machine learning models at scaleFeature drift monitoring as a service for machine learning models at scale
Feature drift monitoring as a service for machine learning models at scale
 
ThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptxThroughTheLookingGlass_EffectiveObservability.pptx
ThroughTheLookingGlass_EffectiveObservability.pptx
 
Monitoring advanced Azure PaaS workloads in the enterprise - Level: 200
Monitoring advanced Azure PaaS workloads in the enterprise - Level: 200Monitoring advanced Azure PaaS workloads in the enterprise - Level: 200
Monitoring advanced Azure PaaS workloads in the enterprise - Level: 200
 
Appmotives - Software Testing As Service
Appmotives - Software Testing As ServiceAppmotives - Software Testing As Service
Appmotives - Software Testing As Service
 
Web adi webcast_v3
Web adi webcast_v3Web adi webcast_v3
Web adi webcast_v3
 
Performance monitoring in a DevOps World
Performance monitoring in a DevOps WorldPerformance monitoring in a DevOps World
Performance monitoring in a DevOps World
 
Azure Monitoring Overview
Azure Monitoring OverviewAzure Monitoring Overview
Azure Monitoring Overview
 
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.ioMuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
MuleSoft Surat Virtual Meetup#4 - Anypoint Monitoring and MuleSoft dataloader.io
 
Data Stack Summit 2023
Data Stack Summit 2023Data Stack Summit 2023
Data Stack Summit 2023
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
 
Intro to Telegraf
Intro to TelegrafIntro to Telegraf
Intro to Telegraf
 
How to Automate your Enterprise Application / ERP Testing
How to Automate your  Enterprise Application / ERP TestingHow to Automate your  Enterprise Application / ERP Testing
How to Automate your Enterprise Application / ERP Testing
 
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
ATAGTR2017 Unified APM: The new age performance monitoring for production sys...
 
Big Data Berlin v8.0 Stream Processing with Apache Apex
Big Data Berlin v8.0 Stream Processing with Apache Apex Big Data Berlin v8.0 Stream Processing with Apache Apex
Big Data Berlin v8.0 Stream Processing with Apache Apex
 
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...
Thomas Weise, Apache Apex PMC Member and Architect/Co-Founder, DataTorrent - ...
 

Audit and syslog lightning talk

  • 1. Audit: data extractors, data generators and integration with Syslog Ivá Arroyo n Alfresco Developer
  • 2. What is the alfresco Audit?
  • 3. Data Producers What is a data producer?
  • 4. Data Producers PathMapping • The data generate by “data producers” are passing to application through the path mappings Application • An application define how data is mapped, extracted, and recorded without affecting data required by other applications
  • 6. Data extractors and data generators Data Generator • A DataGenerator is a component that produces data without any input i.e. data is produced when a data path is active, but is independent of the values at that path. Data Extractor • A DataExtractor is a component that uses input data to produce some output, either transforming the data or merely outputting the data verbatim
  • 7. AuditQuery Consult each audit application component by a customizable query Normal query (all results) •curl -u <admin user>:<password> "http://<hostname>:<port>/alfresco/service/api/audit/query/<application name>? verbose=true Optional parameters •forward (true|false), sorted upward (true)/ downward (false) by date time •limit (true|false), limit the number of results. •toId, return the results until id specified •value, the value to filter •fromTime/toTime, returns the result by the time interval specified (millisecond)
  • 8. Unifying all of the above in an example
  • 9. Modify the output of audited messages • Why? • Advantages and disadvantages
  • 11. Syslog configuration • Configuration file: /etc/syslog.conf 1.Facilities 2.Log File
  • 12. Log4j: syslog appender and additivity log4j.properties (appender) log4j.appender.syslog=org.apache.log4j.net.SyslogAppender log4j.appender.syslog.syslogHost=localhost log4j.appender.syslog.layout=org.apache.log4j.PatternLayout log4j.appender.syslog.layout.conversionPattern=%m%n log4j.appender.syslog.Facility=local4 log4j.properties (additivity) log4j.logger.org.alfresco.audit.LogAuditImpl=INFO,syslog log4j.additivity.org.alfresco.audit.LogAuditImpl = false
  • 13. Logrotate: master you log files • What is? • How works?
  • 14. Demo
  • 15. Thank You! @ivanscn