Blogs

Entries with zylk-blog alfresco .

Actualidad

Alfresco Bulk Export Scripts

avatar
Cesar Capillas Aug 14, 2018

In some of my last projects, I needed to create some helper scripts to extract information from an old Alfresco instance. My previous post about jq showed some of the helper scripts for getting users, groups or sites from Alfresco repository. I uploaded to github some examples: getPeople.sh getGroups.sh getSites.sh getSiteMemberships.sh getUserGroups.sh getAuthority.sh https://github.com/zylklab/alfresco-export-scripts#other-helper-scripts Besides of getting basic information, I needed to......

Read More

Using jq for parsing JSON documents

avatar
Cesar Capillas Aug 04, 2018

I'm a big fan of command line shell utilities, and nowadays with the proliferation of REST APIs and JSON documents, one of the commands that I use more frequently in conjuction with curl is jq. jq is a lightweight and flexible command-line JSON processor and, we could say it is like awk or sed, but for JSON syntax. It may installed via apt in Ubuntu, or downloaded directly from github. In the following I'm going to show some illustrative use cases with jq: Use case 1) Extracting information......

Read More

Using docker images for enterprise databases with Alfresco

avatar
Cesar Capillas Jul 26, 2018

With Alfresco Content Services 6.0, docker-based installations are the standard way for setting up Alfresco (development) environments , while installer-based installations are not available anymore. By the moment, Docker compose resources use Postgresql database as default, but in between Alfresco supported stacks, there are also commercial databases widely used in Alfresco installations, such as MS-SQL Server and Oracle. In our development enviroments (also for Alfresco 5.x), we need to......

Read More

Deleting documents in SOLR

avatar
Cesar Capillas Apr 23, 2018

Just a simple tip today for deleting documents in SOLR via REST API and post command. Consider that you have a collection called gettingstarted and some document with id 44C...

Read More

Using schemaless mode and post command in SOLR

avatar
Cesar Capillas Apr 02, 2018

In SOLR 6.6 the data_driven_scheme_configs configset is able to implement the features of the so-named Schemaless mode. This mode is a set of features that allow users to construct an effective schema by simply indexing sample data, without having to manually edit the schema. In the following examples, I'm using SOLR Cloud 6.6 setup and collection API. $ cd /opt/solr6/solr-6.6.0/ $ ./bin/solr create -c gettingstarted -shards 1 -replicationFactor 2 -p 8983 -d......

Read More

SOLR client APIs

avatar
Cesar Capillas Mar 26, 2018

In SOLR, you may find different client APIs for your favourite programming language such as Java, Python, Ruby, Perl or Javascript. Basically, client apps can reach Solr by creating HTTP requests and parsing the corresponding HTTP responses, encapsulating much of the work of sending requests and parsing responses, and making easier to write client applications. If you are a java programmer you will be confortable with SorlJ , while you can use pysolr  or rsolr libs, for Python and Ruby......

Read More

Using the editorial marker field in SOLR elevation component

avatar
Cesar Capillas Mar 15, 2018

One of the nice features of SOLR is the ability for doing promoted or recommended searches.  With this feature, you can basically use a kind of query (elevation query), that is able to elevate static searches configured by id. Use case example: Imagine that you have a popular Alfresco blog in your site, and you want that when searching for term "alfresco blog", your first or  just a "recommended page" is the solutions page. In elevate.xml:

Read More

Playing with SOLR Cloud and REST API

avatar
Cesar Capillas Mar 06, 2018

Last days I've been involved in an enterprise search project based on Apache Nutch and Apache SOLR projects. As you probably know, SOLR is a powerful enterprise search and index engine with a powerful REST API, which exposes its features as query, index, delete, commit and optimize, and also including a very useful admin interface. Web applications developed in any programing language (such as Java, .NET, Python, or Ruby), can easily call this REST API and perform SOLR operations, which are......

Read More

Analyzing Tomcat log access data with Docker ELK resources

avatar
Cesar Capillas Feb 09, 2018

In last Alfresco Devcon, I presented some basic configuration for Alfresco monitoring with Elastic stack (ELK). A very nice automated setup for testing this configuration in ELK 6.1 is via the docker compose setup given in this github project: $ git clone https://github.com/deviantony/docker-elk $ cd docker-elk This is an opportunity of checking Elastic Stack new features in 6.1 version, for example the new Kibana homepage, some UI accesibility new features, the dashboard full screen mode,......

Read More

Using Zeppelin for Alfresco Data Analysis

avatar
Cesar Capillas Jan 29, 2018

Apache Zeppelin is an open web-based notebok that enables interactive data analytics, from data ingestion, data exploration, reporting and visualizations, until sharing or collaboration features. Interactive browser-based notebooks enable to be more productive by developing, organizing, executing, and sharing data code and visualizing results without referring to the command line. It supports programming languages such as Python, Scala, Hive, SparkSQL, shell or markdown, via Zeppelin language......

Read More

My Alfresco Devcon Notes

avatar
Cesar Capillas Jan 22, 2018
Zylk

Back to Bilbao from Alfresco Devcon 2018. Many years participating in Alfresco events, connecting with old friends, collaborating with Alfresco Community and learning the new dominating technologies surrounding Alfresco for the upcoming years such Docker, Kubernetes, ADF, AWS or microservices.  What to say... I enjoyed a lot with many of the presentations, and it was a pity I could not attend to others. I liked a lot Michael Suzuki's Alfresco Reporting and Analytics, and Luis Cabaceira &......

Read More

More on monitoring dashboards for Alfresco using SOLR, Banana and Apache Zeppelin

avatar
Cesar Capillas Jan 08, 2018

In the previous posts I talked about ELK stack for monitoring Alfresco . But another possibility for loading metrics or logs information, extracted by logstash, is a SOLR index server (instead of Elastic Search), which is part of Alfresco architecture by default, and in principle, it would seem more natural for indexing our Alfresco logs and metrics. Besides, there exists some ports for Kibana in SOLR, such  Banana or Silk , that may be deployed in our SOLR dedicated instance. Basically, you......

Read More

Kibana dashboard for monitoring Alfresco Community via OOTB Support Tools

avatar
Cesar Capillas Dec 26, 2017

Some weeks ago I wrote a post about how to set up a basic Kibana dashboard representing System Performance and Active Sessions in Alfresco Enterprise via JMX metrics from a logstash JMX input. As you probably know, no such Alfresco JMX objects are available in Alfresco Community, such as active sessions (only the java and catalina objects are available). Anyway, it is possible to obtain a similar dashboard using the relevant information from a webscript, for example, the JSON-based webscripts......

Read More

See you in Alfresco Devcon 2018

avatar
Cesar Capillas Dec 16, 2017
Zylk

Last week, it was published the Alfresco Devcon 2018 conference program, that will celebrate in Lisbon next January. Many Alfresco experts of the community, customers, partners, and employees will participate on this fantastic event, around Alfresco related technologies. The program looks really interesting and trendy, with topics such as production-ready Docker stacks, Alfresco deployments using Kubernetes, AWS use cases, SDK 3.0 setups, Alfresco Development Framework (ADF) experiences,......

Read More

Simple Kibana dashboard for monitoring Alfresco Logs

avatar
Cesar Capillas Dec 14, 2017

Some days ago I wrote a post about how to set up a basic Kibana dashboard in Alfresco Enterprise with JMX metrics, from a logstash JMX input. Today I'm gonna add some simple configuration for creating a dashboard for Alfresco logs. The architecture for ELK is the same of the previous post, with logstash running in your Alfresco instance and a dedicated Elastic Search and Kibana server....

Read More

Enabling JMX in Alfresco

avatar
Cesar Capillas Nov 17, 2017

Today I compile several tips about enabling and getting JMX information in Alfresco ECM....

Read More

Kibana dashboard for monitoring Alfresco JMX metrics

avatar
Cesar Capillas Nov 12, 2017

This weekend  I read in Elastic blog that Mr. Robot uses Kibana for monitoring the Dark Army , so I decided to write a post about a recent monitoring project for representing some basic (but interesting) Alfresco JMX metrics in a clustered environment, in which I was involved last week. As you probably know, Kibana is a useful tool of the ELK stack, composed by Elastic Search as indexing backend, Logstash for data extraction, and the cited Kibana for graphic representation of the extracted......

Read More

Some useful Javascript Console scripts

avatar
Cesar Capillas Sep 11, 2017

I publish today a compilation of some useful recipes for Alfresco Javascript Console. Most of them are taken for blog posts, recipes and gists from Alfresco Community people...

Read More

Docker image for Nagios setup for Alfresco Community

avatar
Cesar Capillas Sep 04, 2017

Recently, I started to play with Docker and Vagrant . Many docker images are available in Alfresco Community projects, and recently Alfresco published a very interesting Vagrant Sandbox for the complete platform. My first Docker image is now published on github for a basic setup of Nagios/Icinga for Alfresco (Community and Enterprise). The Dockerfile is configurable for setting the corresponding Alfresco target machine for monitoring. In the following, I show you the basic steps for setting......

Read More

Basic Nagios setup for Alfresco Community

avatar
Cesar Capillas Aug 08, 2017

Today I publish a basic Nagios setup for monitoring Alfresco Community with the help of OOTB Support Tools addon, including recent commands about SOLR indices. https://github.com/zylklab/alfresco-nagios Other links: https://github.com/toniblyx/alfresco-nagios-and-icinga-plugin http://www.zylk.net/es/web-2-0/blog/-/blogs/monitoring-alfresco-in-nagios-via-ootb-support-tools-addon http://www.zylk.net/es/web-2-0/blog/-/blogs/more-on-monitoring-alfresco-in-nagios-via-ootb-support-tools......

Read More